Skip to content

Instantly share code, notes, and snippets.

@rmannibucau
Created March 13, 2018 09:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rmannibucau/3d3d0d61e85d45f2959900f208e71c5e to your computer and use it in GitHub Desktop.
Save rmannibucau/3d3d0d61e85d45f2959900f208e71c5e to your computer and use it in GitHub Desktop.
# JMH version: 1.20
# VM version: JDK 1.8.0_151, VM 25.151-b12
# VM invoker: /home/rmannibucau/softwares/jdk1.8.0_151/jre/bin/java
# VM options: -javaagent:/home/rmannibucau/softwares/idea-IC-173.3727.127/lib/idea_rt.jar=46281:/home/rmannibucau/softwares/idea-IC-173.3727.127/bin -Dfile.encoding=UTF-8
# Warmup: 6 iterations, 1 s each
# Measurement: 5 iterations, 1 s each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Throughput, ops/time
# Benchmark: com.github.rmannibucau.beamvscompletionstage.Comparison.beam
# Run progress: 0,00% complete, ETA 00:01:06
# Fork: 1 of 1
# Warmup Iteration 1: 196378106,941 ops/s
# Warmup Iteration 2: 200500481,163 ops/s
# Warmup Iteration 3: 218003582,038 ops/s
# Warmup Iteration 4: 214689160,493 ops/s
# Warmup Iteration 5: 213736453,894 ops/s
# Warmup Iteration 6: 214029892,160 ops/s
Iteration 1: 217085833,754 ops/s
Iteration 2: 217139932,990 ops/s
Iteration 3: 214879480,119 ops/s
Iteration 4: 218317166,262 ops/s
Iteration 5: 217597027,112 ops/s
Result "com.github.rmannibucau.beamvscompletionstage.Comparison.beam":
217003888,048 ±(99.9%) 4951801,578 ops/s [Average]
(min, avg, max) = (214879480,119, 217003888,048, 218317166,262), stdev = 1285967,145
CI (99.9%): [212052086,470, 221955689,625] (assumes normal distribution)
# JMH version: 1.20
# VM version: JDK 1.8.0_151, VM 25.151-b12
# VM invoker: /home/rmannibucau/softwares/jdk1.8.0_151/jre/bin/java
# VM options: -javaagent:/home/rmannibucau/softwares/idea-IC-173.3727.127/lib/idea_rt.jar=46281:/home/rmannibucau/softwares/idea-IC-173.3727.127/bin -Dfile.encoding=UTF-8
# Warmup: 6 iterations, 1 s each
# Measurement: 5 iterations, 1 s each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Throughput, ops/time
# Benchmark: com.github.rmannibucau.beamvscompletionstage.Comparison.beamCompletionStage
# Run progress: 16,67% complete, ETA 00:01:01
# Fork: 1 of 1
# Warmup Iteration 1: 42977159,339 ops/s
# Warmup Iteration 2: 45174885,193 ops/s
# Warmup Iteration 3: 52786400,094 ops/s
# Warmup Iteration 4: 42338864,588 ops/s
# Warmup Iteration 5: 55896442,036 ops/s
# Warmup Iteration 6: 55576075,093 ops/s
Iteration 1: 56034423,914 ops/s
Iteration 2: 55788475,252 ops/s
Iteration 3: 55046172,888 ops/s
Iteration 4: 55018920,878 ops/s
Iteration 5: 55299219,789 ops/s
Result "com.github.rmannibucau.beamvscompletionstage.Comparison.beamCompletionStage":
55437442,544 ±(99.9%) 1750845,680 ops/s [Average]
(min, avg, max) = (55018920,878, 55437442,544, 56034423,914), stdev = 454689,063
CI (99.9%): [53686596,864, 57188288,224] (assumes normal distribution)
# JMH version: 1.20
# VM version: JDK 1.8.0_151, VM 25.151-b12
# VM invoker: /home/rmannibucau/softwares/jdk1.8.0_151/jre/bin/java
# VM options: -javaagent:/home/rmannibucau/softwares/idea-IC-173.3727.127/lib/idea_rt.jar=46281:/home/rmannibucau/softwares/idea-IC-173.3727.127/bin -Dfile.encoding=UTF-8
# Warmup: 6 iterations, 1 s each
# Measurement: 5 iterations, 1 s each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Throughput, ops/time
# Benchmark: com.github.rmannibucau.beamvscompletionstage.Comparison.beamFastCompletionStage
# Run progress: 33,33% complete, ETA 00:00:49
# Fork: 1 of 1
# Warmup Iteration 1: 75674162,820 ops/s
# Warmup Iteration 2: 84377608,241 ops/s
# Warmup Iteration 3: 99815318,315 ops/s
# Warmup Iteration 4: 131009143,995 ops/s
# Warmup Iteration 5: 129268895,760 ops/s
# Warmup Iteration 6: 129815459,629 ops/s
Iteration 1: 128892100,092 ops/s
Iteration 2: 129459203,510 ops/s
Iteration 3: 127880412,615 ops/s
Iteration 4: 127333812,076 ops/s
Iteration 5: 128545599,920 ops/s
Result "com.github.rmannibucau.beamvscompletionstage.Comparison.beamFastCompletionStage":
128422225,642 ±(99.9%) 3215651,832 ops/s [Average]
(min, avg, max) = (127333812,076, 128422225,642, 129459203,510), stdev = 835094,569
CI (99.9%): [125206573,810, 131637877,475] (assumes normal distribution)
# JMH version: 1.20
# VM version: JDK 1.8.0_151, VM 25.151-b12
# VM invoker: /home/rmannibucau/softwares/jdk1.8.0_151/jre/bin/java
# VM options: -javaagent:/home/rmannibucau/softwares/idea-IC-173.3727.127/lib/idea_rt.jar=46281:/home/rmannibucau/softwares/idea-IC-173.3727.127/bin -Dfile.encoding=UTF-8
# Warmup: 6 iterations, 1 s each
# Measurement: 5 iterations, 1 s each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Throughput, ops/time
# Benchmark: com.github.rmannibucau.beamvscompletionstage.Comparison.defaultCompletionStage
# Run progress: 50,00% complete, ETA 00:00:36
# Fork: 1 of 1
# Warmup Iteration 1: 46235252,280 ops/s
# Warmup Iteration 2: 46258066,166 ops/s
# Warmup Iteration 3: 57386444,600 ops/s
# Warmup Iteration 4: 57607376,651 ops/s
# Warmup Iteration 5: 57239436,180 ops/s
# Warmup Iteration 6: 57566066,284 ops/s
Iteration 1: 57354283,785 ops/s
Iteration 2: 56888830,947 ops/s
Iteration 3: 57586066,724 ops/s
Iteration 4: 57176391,620 ops/s
Iteration 5: 57418235,144 ops/s
Result "com.github.rmannibucau.beamvscompletionstage.Comparison.defaultCompletionStage":
57284761,644 ±(99.9%) 1022305,051 ops/s [Average]
(min, avg, max) = (56888830,947, 57284761,644, 57586066,724), stdev = 265489,375
CI (99.9%): [56262456,593, 58307066,695] (assumes normal distribution)
# JMH version: 1.20
# VM version: JDK 1.8.0_151, VM 25.151-b12
# VM invoker: /home/rmannibucau/softwares/jdk1.8.0_151/jre/bin/java
# VM options: -javaagent:/home/rmannibucau/softwares/idea-IC-173.3727.127/lib/idea_rt.jar=46281:/home/rmannibucau/softwares/idea-IC-173.3727.127/bin -Dfile.encoding=UTF-8
# Warmup: 6 iterations, 1 s each
# Measurement: 5 iterations, 1 s each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Throughput, ops/time
# Benchmark: com.github.rmannibucau.beamvscompletionstage.Comparison.fastCompletionStage
# Run progress: 66,67% complete, ETA 00:00:24
# Fork: 1 of 1
# Warmup Iteration 1: 145180691,847 ops/s
# Warmup Iteration 2: 164602969,081 ops/s
# Warmup Iteration 3: 155867031,786 ops/s
# Warmup Iteration 4: 201513189,022 ops/s
# Warmup Iteration 5: 204849975,489 ops/s
# Warmup Iteration 6: 205386432,677 ops/s
Iteration 1: 201639276,184 ops/s
Iteration 2: 200856361,783 ops/s
Iteration 3: 203927932,895 ops/s
Iteration 4: 203488036,299 ops/s
Iteration 5: 203783906,844 ops/s
Result "com.github.rmannibucau.beamvscompletionstage.Comparison.fastCompletionStage":
202739102,801 ±(99.9%) 5384078,170 ops/s [Average]
(min, avg, max) = (200856361,783, 202739102,801, 203927932,895), stdev = 1398228,003
CI (99.9%): [197355024,631, 208123180,971] (assumes normal distribution)
# JMH version: 1.20
# VM version: JDK 1.8.0_151, VM 25.151-b12
# VM invoker: /home/rmannibucau/softwares/jdk1.8.0_151/jre/bin/java
# VM options: -javaagent:/home/rmannibucau/softwares/idea-IC-173.3727.127/lib/idea_rt.jar=46281:/home/rmannibucau/softwares/idea-IC-173.3727.127/bin -Dfile.encoding=UTF-8
# Warmup: 6 iterations, 1 s each
# Measurement: 5 iterations, 1 s each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Throughput, ops/time
# Benchmark: com.github.rmannibucau.beamvscompletionstage.Comparison.passthrough
# Run progress: 83,33% complete, ETA 00:00:12
# Fork: 1 of 1
# Warmup Iteration 1: 378492183,648 ops/s
# Warmup Iteration 2: 396906546,060 ops/s
# Warmup Iteration 3: 397127269,576 ops/s
# Warmup Iteration 4: 398006786,379 ops/s
# Warmup Iteration 5: 393453903,243 ops/s
# Warmup Iteration 6: 391117542,583 ops/s
Iteration 1: 394320138,678 ops/s
Iteration 2: 391205671,445 ops/s
Iteration 3: 390862194,519 ops/s
Iteration 4: 390559313,346 ops/s
Iteration 5: 390570370,877 ops/s
Result "com.github.rmannibucau.beamvscompletionstage.Comparison.passthrough":
391503537,773 ±(99.9%) 6147672,843 ops/s [Average]
(min, avg, max) = (390559313,346, 391503537,773, 394320138,678), stdev = 1596531,115
CI (99.9%): [385355864,930, 397651210,617] (assumes normal distribution)
# Run complete. Total time: 00:01:13
Benchmark Mode Cnt Score Error Units
Comparison.beam thrpt 5 217003888,048 ± 4951801,578 ops/s
Comparison.beamCompletionStage thrpt 5 55437442,544 ± 1750845,680 ops/s
Comparison.beamFastCompletionStage thrpt 5 128422225,642 ± 3215651,832 ops/s
Comparison.defaultCompletionStage thrpt 5 57284761,644 ± 1022305,051 ops/s
Comparison.fastCompletionStage thrpt 5 202739102,801 ± 5384078,170 ops/s
Comparison.passthrough thrpt 5 391503537,773 ± 6147672,843 ops/s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment