Skip to content

Instantly share code, notes, and snippets.

@rkuhn
Created July 12, 2014 12:34
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 rkuhn/505bcac2caddbff6b47e to your computer and use it in GitHub Desktop.
Save rkuhn/505bcac2caddbff6b47e to your computer and use it in GitHub Desktop.
Performance assessment of bounded vs unbounded requests across an asynchronous boundary
[info] Compiling 1 Scala source to /Users/rkuhn/comp/jmh/target/scala-2.10/classes...
[info] Generating JMH benchmark Java source files...
Processing 23 classes from /Users/rkuhn/comp/jmh/target/scala-2.10/classes with "reflection" generator
Writing out Java source to /Users/rkuhn/comp/jmh/target/scala-2.10/generated-sources/jmh and resources to /Users/rkuhn/comp/jmh/target/scala-2.10/classes
[info] Compiling generated JMH benchmarks...
[info] Compiling 1 Java source to /Users/rkuhn/comp/jmh/target/scala-2.10/classes...
[warn] Note: /Users/rkuhn/comp/jmh/target/scala-2.10/generated-sources/jmh/rs/generated/Simple_push.java uses unchecked or unsafe operations.
[warn] Note: Recompile with -Xlint:unchecked for details.
[info] Running org.openjdk.jmh.Main
[info] # Run progress: 0,00% complete, ETA 00:03:54
[info] # Warmup: 8 iterations, 1 s each
[info] # Measurement: 5 iterations, 1 s each
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: rs.Simple.push
[info] # Parameters: (batchSize = 1)
[info] # VM invoker: /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/bin/java
[info] # VM options: <none>
[info] # Fork: 1 of 3
[info] # Warmup Iteration 1: elements offered: 21749877 no demand: 16495704 (75%) queue full: 0 (0%)
[info] 50,077 ns/op
[info] # Warmup Iteration 2: elements offered: 12145342 no demand: 3811626 (31%) queue full: 0 (0%)
[info] 90,688 ns/op
[info] # Warmup Iteration 3: elements offered: 10897029 no demand: 3537924 (32%) queue full: 0 (0%)
[info] 100,965 ns/op
[info] # Warmup Iteration 4: elements offered: 10824325 no demand: 3922793 (36%) queue full: 0 (0%)
[info] 101,649 ns/op
[info] # Warmup Iteration 5: elements offered: 9537619 no demand: 3537839 (37%) queue full: 0 (0%)
[info] 115,479 ns/op
[info] # Warmup Iteration 6: elements offered: 10691020 no demand: 3259633 (30%) queue full: 0 (0%)
[info] 102,990 ns/op
[info] # Warmup Iteration 7: elements offered: 11448726 no demand: 4342047 (37%) queue full: 0 (0%)
[info] 96,077 ns/op
[info] # Warmup Iteration 8: elements offered: 11216417 no demand: 4004062 (35%) queue full: 0 (0%)
[info] 98,102 ns/op
[info] Iteration 1: elements offered: 10045929 no demand: 3505356 (34%) queue full: 0 (0%)
[info] 109,514 ns/op
[info] Iteration 2: elements offered: 10526590 no demand: 4321456 (41%) queue full: 0 (0%)
[info] 104,637 ns/op
[info] Iteration 3: elements offered: 11013102 no demand: 4714014 (42%) queue full: 0 (0%)
[info] 99,950 ns/op
[info] Iteration 4: elements offered: 10521962 no demand: 4182006 (39%) queue full: 0 (0%)
[info] 104,648 ns/op
[info] Iteration 5: elements offered: 11817098 no demand: 5269448 (44%) queue full: 0 (0%)
[info] 93,107 ns/op
[info]
[info] Result: 102,371 ±(99.9%) 23,816 ns/op [Average]
[info] Statistics: (min, avg, max) = (93,107, 102,371, 109,514), stdev = 6,185
[info] Confidence interval (99.9%): [78,555, 126,187]
[info]
[info]
[info] # Run progress: 5,56% complete, ETA 00:04:30
[info] # Warmup: 8 iterations, 1 s each
[info] # Measurement: 5 iterations, 1 s each
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: rs.Simple.push
[info] # Parameters: (batchSize = 1)
[info] # VM invoker: /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/bin/java
[info] # VM options: <none>
[info] # Fork: 2 of 3
[info] # Warmup Iteration 1: elements offered: 23623201 no demand: 18150329 (76%) queue full: 0 (0%)
[info] 46,158 ns/op
[info] # Warmup Iteration 2: elements offered: 11907406 no demand: 5418881 (45%) queue full: 0 (0%)
[info] 92,509 ns/op
[info] # Warmup Iteration 3: elements offered: 9977097 no demand: 3335535 (33%) queue full: 0 (0%)
[info] 110,266 ns/op
[info] # Warmup Iteration 4: elements offered: 11620180 no demand: 4882203 (42%) queue full: 0 (0%)
[info] 94,718 ns/op
[info] # Warmup Iteration 5: elements offered: 8762208 no demand: 2366404 (27%) queue full: 0 (0%)
[info] 125,669 ns/op
[info] # Warmup Iteration 6: elements offered: 10164706 no demand: 3120298 (30%) queue full: 0 (0%)
[info] 108,321 ns/op
[info] # Warmup Iteration 7: elements offered: 9572030 no demand: 2848212 (29%) queue full: 0 (0%)
[info] 114,955 ns/op
[info] # Warmup Iteration 8: elements offered: 9660559 no demand: 2492750 (25%) queue full: 0 (0%)
[info] 114,031 ns/op
[info] Iteration 1: elements offered: 8400113 no demand: 1744171 (20%) queue full: 0 (0%)
[info] 130,989 ns/op
[info] Iteration 2: elements offered: 10099187 no demand: 3095158 (30%) queue full: 0 (0%)
[info] 109,099 ns/op
[info] Iteration 3: elements offered: 16863732 no demand: 6674211 (39%) queue full: 0 (0%)
[info] 65,299 ns/op
[info] Iteration 4: elements offered: 9088752 no demand: 2468673 (27%) queue full: 0 (0%)
[info] 121,117 ns/op
[info] Iteration 5: elements offered: 10531733 no demand: 1226461 (11%) queue full: 0 (0%)
[info] 104,488 ns/op
[info]
[info] Result: 106,198 ±(99.9%) 96,674 ns/op [Average]
[info] Statistics: (min, avg, max) = (65,299, 106,198, 130,989), stdev = 25,106
[info] Confidence interval (99.9%): [9,524, 202,873]
[info]
[info]
[info] # Run progress: 11,11% complete, ETA 00:04:14
[info] # Warmup: 8 iterations, 1 s each
[info] # Measurement: 5 iterations, 1 s each
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: rs.Simple.push
[info] # Parameters: (batchSize = 1)
[info] # VM invoker: /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/bin/java
[info] # VM options: <none>
[info] # Fork: 3 of 3
[info] # Warmup Iteration 1: elements offered: 28740016 no demand: 23028973 (80%) queue full: 0 (0%)
[info] 37,928 ns/op
[info] # Warmup Iteration 2: elements offered: 13466202 no demand: 5054924 (37%) queue full: 0 (0%)
[info] 81,725 ns/op
[info] # Warmup Iteration 3: elements offered: 13764471 no demand: 6086252 (44%) queue full: 0 (0%)
[info] 79,958 ns/op
[info] # Warmup Iteration 4: elements offered: 25268673 no demand: 17140668 (67%) queue full: 0 (0%)
[info] 43,572 ns/op
[info] # Warmup Iteration 5: elements offered: 11531181 no demand: 4861948 (42%) queue full: 0 (0%)
[info] 95,490 ns/op
[info] # Warmup Iteration 6: elements offered: 15323462 no demand: 7356857 (48%) queue full: 0 (0%)
[info] 71,810 ns/op
[info] # Warmup Iteration 7: elements offered: 14608994 no demand: 7226632 (49%) queue full: 0 (0%)
[info] 75,371 ns/op
[info] # Warmup Iteration 8: elements offered: 12220819 no demand: 5649245 (46%) queue full: 0 (0%)
[info] 90,137 ns/op
[info] Iteration 1: elements offered: 15172956 no demand: 8458191 (55%) queue full: 0 (0%)
[info] 72,557 ns/op
[info] Iteration 2: elements offered: 12073533 no demand: 5474352 (45%) queue full: 0 (0%)
[info] 91,100 ns/op
[info] Iteration 3: elements offered: 10900083 no demand: 4751137 (43%) queue full: 0 (0%)
[info] 100,975 ns/op
[info] Iteration 4: elements offered: 11400489 no demand: 4742506 (41%) queue full: 0 (0%)
[info] 96,586 ns/op
[info] Iteration 5: elements offered: 11542796 no demand: 4883301 (42%) queue full: 0 (0%)
[info] 95,342 ns/op
[info]
[info] Result: 91,312 ±(99.9%) 42,585 ns/op [Average]
[info] Statistics: (min, avg, max) = (72,557, 91,312, 100,975), stdev = 11,059
[info] Confidence interval (99.9%): [48,727, 133,897]
[info]
[info]
[info] # Run progress: 16,67% complete, ETA 00:03:58
[info] # Warmup: 8 iterations, 1 s each
[info] # Measurement: 5 iterations, 1 s each
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: rs.Simple.push
[info] # Parameters: (batchSize = 10)
[info] # VM invoker: /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/bin/java
[info] # VM options: <none>
[info] # Fork: 1 of 3
[info] # Warmup Iteration 1: elements offered: 26744337 no demand: 16212277 (60%) queue full: 0 (0%)
[info] 40,734 ns/op
[info] # Warmup Iteration 2: elements offered: 16734750 no demand: 197126 (1%) queue full: 0 (0%)
[info] 65,759 ns/op
[info] # Warmup Iteration 3: elements offered: 21667106 no demand: 1449969 (6%) queue full: 0 (0%)
[info] 50,775 ns/op
[info] # Warmup Iteration 4: elements offered: 18111877 no demand: 335756 (1%) queue full: 0 (0%)
[info] 60,813 ns/op
[info] # Warmup Iteration 5: elements offered: 21632524 no demand: 732063 (3%) queue full: 0 (0%)
[info] 50,852 ns/op
[info] # Warmup Iteration 6: elements offered: 17613707 no demand: 136592 (0%) queue full: 0 (0%)
[info] 62,479 ns/op
[info] # Warmup Iteration 7: elements offered: 19313883 no demand: 70652 (0%) queue full: 0 (0%)
[info] 57,005 ns/op
[info] # Warmup Iteration 8: elements offered: 18231940 no demand: 558153 (3%) queue full: 0 (0%)
[info] 60,345 ns/op
[info] Iteration 1: elements offered: 18395184 no demand: 766749 (4%) queue full: 0 (0%)
[info] 59,808 ns/op
[info] Iteration 2: elements offered: 21916077 no demand: 2607327 (11%) queue full: 0 (0%)
[info] 50,237 ns/op
[info] Iteration 3: elements offered: 20236387 no demand: 3376716 (16%) queue full: 0 (0%)
[info] 54,441 ns/op
[info] Iteration 4: elements offered: 21960649 no demand: 1355888 (6%) queue full: 0 (0%)
[info] 50,092 ns/op
[info] Iteration 5: elements offered: 21668107 no demand: 1792137 (8%) queue full: 0 (0%)
[info] 50,823 ns/op
[info]
[info] Result: 53,080 ±(99.9%) 16,020 ns/op [Average]
[info] Statistics: (min, avg, max) = (50,092, 53,080, 59,808), stdev = 4,160
[info] Confidence interval (99.9%): [37,060, 69,100]
[info]
[info]
[info] # Run progress: 22,22% complete, ETA 00:03:42
[info] # Warmup: 8 iterations, 1 s each
[info] # Measurement: 5 iterations, 1 s each
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: rs.Simple.push
[info] # Parameters: (batchSize = 10)
[info] # VM invoker: /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/bin/java
[info] # VM options: <none>
[info] # Fork: 2 of 3
[info] # Warmup Iteration 1: elements offered: 29758877 no demand: 15356036 (51%) queue full: 0 (0%)
[info] 36,647 ns/op
[info] # Warmup Iteration 2: elements offered: 17348612 no demand: 680833 (3%) queue full: 0 (0%)
[info] 63,466 ns/op
[info] # Warmup Iteration 3: elements offered: 17361848 no demand: 485137 (2%) queue full: 0 (0%)
[info] 63,426 ns/op
[info] # Warmup Iteration 4: elements offered: 18589691 no demand: 421141 (2%) queue full: 0 (0%)
[info] 59,219 ns/op
[info] # Warmup Iteration 5: elements offered: 20585499 no demand: 88921 (0%) queue full: 0 (0%)
[info] 53,403 ns/op
[info] # Warmup Iteration 6: elements offered: 19845548 no demand: 818604 (4%) queue full: 0 (0%)
[info] 55,477 ns/op
[info] # Warmup Iteration 7: elements offered: 17578668 no demand: 213727 (1%) queue full: 0 (0%)
[info] 62,630 ns/op
[info] # Warmup Iteration 8: elements offered: 19892399 no demand: 2831459 (14%) queue full: 0 (0%)
[info] 55,308 ns/op
[info] Iteration 1: elements offered: 18447746 no demand: 301935 (1%) queue full: 0 (0%)
[info] 59,704 ns/op
[info] Iteration 2: elements offered: 16651586 no demand: 31628 (0%) queue full: 0 (0%)
[info] 66,083 ns/op
[info] Iteration 3: elements offered: 18658863 no demand: 199263 (1%) queue full: 0 (0%)
[info] 58,954 ns/op
[info] Iteration 4: elements offered: 19962834 no demand: 441773 (2%) queue full: 0 (0%)
[info] 55,146 ns/op
[info] Iteration 5: elements offered: 21206386 no demand: 435481 (2%) queue full: 0 (0%)
[info] 51,885 ns/op
[info]
[info] Result: 58,354 ±(99.9%) 20,562 ns/op [Average]
[info] Statistics: (min, avg, max) = (51,885, 58,354, 66,083), stdev = 5,340
[info] Confidence interval (99.9%): [37,792, 78,916]
[info]
[info]
[info] # Run progress: 27,78% complete, ETA 00:03:26
[info] # Warmup: 8 iterations, 1 s each
[info] # Measurement: 5 iterations, 1 s each
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: rs.Simple.push
[info] # Parameters: (batchSize = 10)
[info] # VM invoker: /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/bin/java
[info] # VM options: <none>
[info] # Fork: 3 of 3
[info] # Warmup Iteration 1: elements offered: 31290388 no demand: 14960097 (47%) queue full: 0 (0%)
[info] 34,840 ns/op
[info] # Warmup Iteration 2: elements offered: 18128791 no demand: 3041690 (16%) queue full: 0 (0%)
[info] 60,694 ns/op
[info] # Warmup Iteration 3: elements offered: 19600460 no demand: 2122321 (10%) queue full: 0 (0%)
[info] 56,153 ns/op
[info] # Warmup Iteration 4: elements offered: 21559731 no demand: 4719431 (21%) queue full: 0 (0%)
[info] 51,071 ns/op
[info] # Warmup Iteration 5: elements offered: 20556233 no demand: 1355736 (6%) queue full: 0 (0%)
[info] 53,552 ns/op
[info] # Warmup Iteration 6: elements offered: 20174278 no demand: 434008 (2%) queue full: 0 (0%)
[info] 54,567 ns/op
[info] # Warmup Iteration 7: elements offered: 21910038 no demand: 1701072 (7%) queue full: 0 (0%)
[info] 50,283 ns/op
[info] # Warmup Iteration 8: elements offered: 18644081 no demand: 2137802 (11%) queue full: 0 (0%)
[info] 58,999 ns/op
[info] Iteration 1: elements offered: 18439964 no demand: 366583 (1%) queue full: 0 (0%)
[info] 59,632 ns/op
[info] Iteration 2: elements offered: 21669080 no demand: 513977 (2%) queue full: 0 (0%)
[info] 50,861 ns/op
[info] Iteration 3: elements offered: 20024607 no demand: 540449 (2%) queue full: 0 (0%)
[info] 54,972 ns/op
[info] Iteration 4: elements offered: 19072815 no demand: 2019134 (10%) queue full: 0 (0%)
[info] 57,732 ns/op
[info] Iteration 5: elements offered: 18321682 no demand: 1750381 (9%) queue full: 0 (0%)
[info] 60,118 ns/op
[info]
[info] Result: 56,663 ±(99.9%) 14,715 ns/op [Average]
[info] Statistics: (min, avg, max) = (50,861, 56,663, 60,118), stdev = 3,821
[info] Confidence interval (99.9%): [41,948, 71,378]
[info]
[info]
[info] # Run progress: 33,33% complete, ETA 00:03:10
[info] # Warmup: 8 iterations, 1 s each
[info] # Measurement: 5 iterations, 1 s each
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: rs.Simple.push
[info] # Parameters: (batchSize = 100)
[info] # VM invoker: /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/bin/java
[info] # VM options: <none>
[info] # Fork: 1 of 3
[info] # Warmup Iteration 1: elements offered: 42239664 no demand: 16806137 (39%) queue full: 0 (0%)
[info] 25,757 ns/op
[info] # Warmup Iteration 2: elements offered: 26440422 no demand: 351988 (1%) queue full: 0 (0%)
[info] 41,637 ns/op
[info] # Warmup Iteration 3: elements offered: 58028316 no demand: 4575987 (7%) queue full: 0 (0%)
[info] 18,975 ns/op
[info] # Warmup Iteration 4: elements offered: 63598643 no demand: 6236825 (9%) queue full: 0 (0%)
[info] 17,299 ns/op
[info] # Warmup Iteration 5: elements offered: 30933814 no demand: 267569 (0%) queue full: 0 (0%)
[info] 35,600 ns/op
[info] # Warmup Iteration 6: elements offered: 69581662 no demand: 1018609 (1%) queue full: 0 (0%)
[info] 15,833 ns/op
[info] # Warmup Iteration 7: elements offered: 28471987 no demand: 88265 (0%) queue full: 0 (0%)
[info] 38,659 ns/op
[info] # Warmup Iteration 8: elements offered: 68731792 no demand: 220740 (0%) queue full: 0 (0%)
[info] 16,013 ns/op
[info] Iteration 1: elements offered: 34925187 no demand: 257506 (0%) queue full: 0 (0%)
[info] 31,540 ns/op
[info] Iteration 2: elements offered: 33124380 no demand: 210305 (0%) queue full: 0 (0%)
[info] 33,215 ns/op
[info] Iteration 3: elements offered: 71669034 no demand: 3491118 (4%) queue full: 0 (0%)
[info] 15,358 ns/op
[info] Iteration 4: elements offered: 63940638 no demand: 418588 (0%) queue full: 0 (0%)
[info] 17,224 ns/op
[info] Iteration 5: elements offered: 33941236 no demand: 62127 (0%) queue full: 0 (0%)
[info] 32,429 ns/op
[info]
[info] Result: 25,953 ±(99.9%) 34,136 ns/op [Average]
[info] Statistics: (min, avg, max) = (15,358, 25,953, 33,215), stdev = 8,865
[info] Confidence interval (99.9%): [-8,182, 60,089]
[info]
[info]
[info] # Run progress: 38,89% complete, ETA 00:02:54
[info] # Warmup: 8 iterations, 1 s each
[info] # Measurement: 5 iterations, 1 s each
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: rs.Simple.push
[info] # Parameters: (batchSize = 100)
[info] # VM invoker: /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/bin/java
[info] # VM options: <none>
[info] # Fork: 2 of 3
[info] # Warmup Iteration 1: elements offered: 43605240 no demand: 18781731 (43%) queue full: 0 (0%)
[info] 25,019 ns/op
[info] # Warmup Iteration 2: elements offered: 30299206 no demand: 3291317 (10%) queue full: 0 (0%)
[info] 36,310 ns/op
[info] # Warmup Iteration 3: elements offered: 36946650 no demand: 1384374 (3%) queue full: 0 (0%)
[info] 29,796 ns/op
[info] # Warmup Iteration 4: elements offered: 30647093 no demand: 7906692 (25%) queue full: 0 (0%)
[info] 35,926 ns/op
[info] # Warmup Iteration 5: elements offered: 38895717 no demand: 13220817 (33%) queue full: 0 (0%)
[info] 28,288 ns/op
[info] # Warmup Iteration 6: elements offered: 36697642 no demand: 666766 (1%) queue full: 0 (0%)
[info] 29,979 ns/op
[info] # Warmup Iteration 7: elements offered: 36243606 no demand: 11530133 (31%) queue full: 0 (0%)
[info] 30,388 ns/op
[info] # Warmup Iteration 8: elements offered: 32137913 no demand: 368883 (1%) queue full: 0 (0%)
[info] 34,250 ns/op
[info] Iteration 1: elements offered: 43661794 no demand: 16243892 (37%) queue full: 0 (0%)
[info] 25,206 ns/op
[info] Iteration 2: elements offered: 33887550 no demand: 2064553 (6%) queue full: 0 (0%)
[info] 32,464 ns/op
[info] Iteration 3: elements offered: 36295423 no demand: 397352 (1%) queue full: 0 (0%)
[info] 30,335 ns/op
[info] Iteration 4: elements offered: 31287065 no demand: 9394577 (30%) queue full: 0 (0%)
[info] 35,159 ns/op
[info] Iteration 5: elements offered: 48469551 no demand: 6594612 (13%) queue full: 0 (0%)
[info] 22,703 ns/op
[info]
[info] Result: 29,173 ±(99.9%) 19,786 ns/op [Average]
[info] Statistics: (min, avg, max) = (22,703, 29,173, 35,159), stdev = 5,138
[info] Confidence interval (99.9%): [9,387, 48,960]
[info]
[info]
[info] # Run progress: 44,44% complete, ETA 00:02:38
[info] # Warmup: 8 iterations, 1 s each
[info] # Measurement: 5 iterations, 1 s each
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: rs.Simple.push
[info] # Parameters: (batchSize = 100)
[info] # VM invoker: /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/bin/java
[info] # VM options: <none>
[info] # Fork: 3 of 3
[info] # Warmup Iteration 1: elements offered: 30230098 no demand: 15130599 (50%) queue full: 0 (0%)
[info] 36,072 ns/op
[info] # Warmup Iteration 2: elements offered: 32847736 no demand: 3079491 (9%) queue full: 0 (0%)
[info] 33,530 ns/op
[info] # Warmup Iteration 3: elements offered: 37276217 no demand: 531613 (1%) queue full: 0 (0%)
[info] 29,526 ns/op
[info] # Warmup Iteration 4: elements offered: 37179971 no demand: 7524375 (20%) queue full: 0 (0%)
[info] 29,608 ns/op
[info] # Warmup Iteration 5: elements offered: 38112244 no demand: 1220118 (3%) queue full: 0 (0%)
[info] 28,901 ns/op
[info] # Warmup Iteration 6: elements offered: 37435911 no demand: 748620 (1%) queue full: 0 (0%)
[info] 29,393 ns/op
[info] # Warmup Iteration 7: elements offered: 47284318 no demand: 20671218 (43%) queue full: 0 (0%)
[info] 23,294 ns/op
[info] # Warmup Iteration 8: elements offered: 32950347 no demand: 4531598 (13%) queue full: 0 (0%)
[info] 33,434 ns/op
[info] Iteration 1: elements offered: 34839510 no demand: 1029565 (2%) queue full: 0 (0%)
[info] 31,583 ns/op
[info] Iteration 2: elements offered: 31979357 no demand: 8510757 (26%) queue full: 0 (0%)
[info] 34,409 ns/op
[info] Iteration 3: elements offered: 38003911 no demand: 12790900 (33%) queue full: 0 (0%)
[info] 28,949 ns/op
[info] Iteration 4: elements offered: 31769765 no demand: 2760135 (8%) queue full: 0 (0%)
[info] 34,657 ns/op
[info] Iteration 5: elements offered: 35375261 no demand: 8879761 (25%) queue full: 0 (0%)
[info] 31,113 ns/op
[info]
[info] Result: 32,142 ±(99.9%) 9,240 ns/op [Average]
[info] Statistics: (min, avg, max) = (28,949, 32,142, 34,657), stdev = 2,400
[info] Confidence interval (99.9%): [22,902, 41,382]
[info]
[info]
[info] # Run progress: 50,00% complete, ETA 00:02:22
[info] # Warmup: 8 iterations, 1 s each
[info] # Measurement: 5 iterations, 1 s each
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: rs.Simple.push
[info] # Parameters: (batchSize = 1000)
[info] # VM invoker: /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/bin/java
[info] # VM options: <none>
[info] # Fork: 1 of 3
[info] # Warmup Iteration 1: elements offered: 33374910 no demand: 24324910 (72%) queue full: 0 (0%)
[info] 32,638 ns/op
[info] # Warmup Iteration 2: elements offered: 37910343 no demand: 21110343 (55%) queue full: 0 (0%)
[info] 29,045 ns/op
[info] # Warmup Iteration 3: elements offered: 47276146 no demand: 13866709 (29%) queue full: 0 (0%)
[info] 23,284 ns/op
[info] # Warmup Iteration 4: elements offered: 39081462 no demand: 18191472 (46%) queue full: 0 (0%)
[info] 28,157 ns/op
[info] # Warmup Iteration 5: elements offered: 33005873 no demand: 19425873 (58%) queue full: 0 (0%)
[info] 33,636 ns/op
[info] # Warmup Iteration 6: elements offered: 36744937 no demand: 18326433 (49%) queue full: 0 (0%)
[info] 29,954 ns/op
[info] # Warmup Iteration 7: elements offered: 48341494 no demand: 16478898 (34%) queue full: 0 (0%)
[info] 22,769 ns/op
[info] # Warmup Iteration 8: elements offered: 43715315 no demand: 9072095 (20%) queue full: 0 (0%)
[info] 25,165 ns/op
[info] Iteration 1: elements offered: 54102192 no demand: 18972565 (35%) queue full: 0 (0%)
[info] 20,347 ns/op
[info] Iteration 2: elements offered: 37212135 no demand: 17850135 (47%) queue full: 0 (0%)
[info] 29,567 ns/op
[info] Iteration 3: elements offered: 47612603 no demand: 18378536 (38%) queue full: 0 (0%)
[info] 23,119 ns/op
[info] Iteration 4: elements offered: 43111219 no demand: 16953165 (39%) queue full: 0 (0%)
[info] 25,538 ns/op
[info] Iteration 5: elements offered: 35978331 no demand: 20542331 (57%) queue full: 0 (0%)
[info] 30,592 ns/op
[info]
[info] Result: 25,833 ±(99.9%) 16,578 ns/op [Average]
[info] Statistics: (min, avg, max) = (20,347, 25,833, 30,592), stdev = 4,305
[info] Confidence interval (99.9%): [9,255, 42,410]
[info]
[info]
[info] # Run progress: 55,56% complete, ETA 00:02:07
[info] # Warmup: 8 iterations, 1 s each
[info] # Measurement: 5 iterations, 1 s each
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: rs.Simple.push
[info] # Parameters: (batchSize = 1000)
[info] # VM invoker: /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/bin/java
[info] # VM options: <none>
[info] # Fork: 2 of 3
[info] # Warmup Iteration 1: elements offered: 56195381 no demand: 26545722 (47%) queue full: 0 (0%)
[info] 19,381 ns/op
[info] # Warmup Iteration 2: elements offered: 64202252 no demand: 26562251 (41%) queue full: 0 (0%)
[info] 17,147 ns/op
[info] # Warmup Iteration 3: elements offered: 36756537 no demand: 23585537 (64%) queue full: 0 (0%)
[info] 29,943 ns/op
[info] # Warmup Iteration 4: elements offered: 57139718 no demand: 21139718 (36%) queue full: 0 (0%)
[info] 19,253 ns/op
[info] # Warmup Iteration 5: elements offered: 43823406 no demand: 21093406 (48%) queue full: 0 (0%)
[info] 25,131 ns/op
[info] # Warmup Iteration 6: elements offered: 43852176 no demand: 18689176 (42%) queue full: 0 (0%)
[info] 25,101 ns/op
[info] # Warmup Iteration 7: elements offered: 56929870 no demand: 21822870 (38%) queue full: 0 (0%)
[info] 19,354 ns/op
[info] # Warmup Iteration 8: elements offered: 37878390 no demand: 25140390 (66%) queue full: 0 (0%)
[info] 29,083 ns/op
[info] Iteration 1: elements offered: 49611424 no demand: 26789919 (53%) queue full: 0 (0%)
[info] 22,180 ns/op
[info] Iteration 2: elements offered: 41901264 no demand: 16836264 (40%) queue full: 0 (0%)
[info] 26,280 ns/op
[info] Iteration 3: elements offered: 37363316 no demand: 24425316 (65%) queue full: 0 (0%)
[info] 29,466 ns/op
[info] Iteration 4: elements offered: 34085783 no demand: 21290783 (62%) queue full: 0 (0%)
[info] 32,295 ns/op
[info] Iteration 5: elements offered: 59677834 no demand: 16933226 (28%) queue full: 0 (0%)
[info] 18,457 ns/op
[info]
[info] Result: 25,736 ±(99.9%) 21,340 ns/op [Average]
[info] Statistics: (min, avg, max) = (18,457, 25,736, 32,295), stdev = 5,542
[info] Confidence interval (99.9%): [4,395, 47,076]
[info]
[info]
[info] # Run progress: 61,11% complete, ETA 00:01:51
[info] # Warmup: 8 iterations, 1 s each
[info] # Measurement: 5 iterations, 1 s each
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: rs.Simple.push
[info] # Parameters: (batchSize = 1000)
[info] # VM invoker: /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/bin/java
[info] # VM options: <none>
[info] # Fork: 3 of 3
[info] # Warmup Iteration 1: elements offered: 60225784 no demand: 34574229 (57%) queue full: 0 (0%)
[info] 18,121 ns/op
[info] # Warmup Iteration 2: elements offered: 51277676 no demand: 21670676 (42%) queue full: 0 (0%)
[info] 21,454 ns/op
[info] # Warmup Iteration 3: elements offered: 33271574 no demand: 8621574 (25%) queue full: 0 (0%)
[info] 33,073 ns/op
[info] # Warmup Iteration 4: elements offered: 45085442 no demand: 9910442 (21%) queue full: 0 (0%)
[info] 24,408 ns/op
[info] # Warmup Iteration 5: elements offered: 63691542 no demand: 27362542 (42%) queue full: 0 (0%)
[info] 17,264 ns/op
[info] # Warmup Iteration 6: elements offered: 29963734 no demand: 6371331 (21%) queue full: 0 (0%)
[info] 36,716 ns/op
[info] # Warmup Iteration 7: elements offered: 39838911 no demand: 14869475 (37%) queue full: 0 (0%)
[info] 27,628 ns/op
[info] # Warmup Iteration 8: elements offered: 47412291 no demand: 7840579 (16%) queue full: 0 (0%)
[info] 23,216 ns/op
[info] Iteration 1: elements offered: 48447928 no demand: 15371928 (31%) queue full: 0 (0%)
[info] 22,720 ns/op
[info] Iteration 2: elements offered: 38861978 no demand: 14021978 (36%) queue full: 0 (0%)
[info] 28,341 ns/op
[info] Iteration 3: elements offered: 40382945 no demand: 16370945 (40%) queue full: 0 (0%)
[info] 27,235 ns/op
[info] Iteration 4: elements offered: 33793987 no demand: 11333435 (33%) queue full: 0 (0%)
[info] 32,573 ns/op
[info] Iteration 5: elements offered: 38007057 no demand: 15984057 (42%) queue full: 0 (0%)
[info] 28,954 ns/op
[info]
[info] Result: 27,965 ±(99.9%) 13,668 ns/op [Average]
[info] Statistics: (min, avg, max) = (22,720, 27,965, 32,573), stdev = 3,550
[info] Confidence interval (99.9%): [14,297, 41,633]
[info]
[info]
[info] # Run progress: 66,67% complete, ETA 00:01:35
[info] # Warmup: 8 iterations, 1 s each
[info] # Measurement: 5 iterations, 1 s each
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: rs.Simple.push
[info] # Parameters: (batchSize = 10000)
[info] # VM invoker: /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/bin/java
[info] # VM options: <none>
[info] # Fork: 1 of 3
[info] # Warmup Iteration 1: elements offered: 50179237 no demand: 28759237 (57%) queue full: 0 (0%)
[info] 21,748 ns/op
[info] # Warmup Iteration 2: elements offered: 31678779 no demand: 19098779 (60%) queue full: 0 (0%)
[info] 34,749 ns/op
[info] # Warmup Iteration 3: elements offered: 31886770 no demand: 19218705 (60%) queue full: 0 (0%)
[info] 34,522 ns/op
[info] # Warmup Iteration 4: elements offered: 35521514 no demand: 17271514 (48%) queue full: 0 (0%)
[info] 30,990 ns/op
[info] # Warmup Iteration 5: elements offered: 30337890 no demand: 18137890 (59%) queue full: 0 (0%)
[info] 36,307 ns/op
[info] # Warmup Iteration 6: elements offered: 43520278 no demand: 19355523 (44%) queue full: 0 (0%)
[info] 25,300 ns/op
[info] # Warmup Iteration 7: elements offered: 53729142 no demand: 26855087 (49%) queue full: 0 (0%)
[info] 20,476 ns/op
[info] # Warmup Iteration 8: elements offered: 55230487 no demand: 28820487 (52%) queue full: 0 (0%)
[info] 19,921 ns/op
[info] Iteration 1: elements offered: 54458472 no demand: 15574606 (28%) queue full: 0 (0%)
[info] 20,218 ns/op
[info] Iteration 2: elements offered: 30606352 no demand: 14256352 (46%) queue full: 0 (0%)
[info] 35,992 ns/op
[info] Iteration 3: elements offered: 56759245 no demand: 29209245 (51%) queue full: 0 (0%)
[info] 19,368 ns/op
[info] Iteration 4: elements offered: 33585421 no demand: 14466357 (43%) queue full: 0 (0%)
[info] 32,797 ns/op
[info] Iteration 5: elements offered: 52625413 no demand: 24358823 (46%) queue full: 0 (0%)
[info] 20,916 ns/op
[info]
[info] Result: 25,858 ±(99.9%) 30,393 ns/op [Average]
[info] Statistics: (min, avg, max) = (19,368, 25,858, 35,992), stdev = 7,893
[info] Confidence interval (99.9%): [-4,535, 56,252]
[info]
[info]
[info] # Run progress: 72,22% complete, ETA 00:01:19
[info] # Warmup: 8 iterations, 1 s each
[info] # Measurement: 5 iterations, 1 s each
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: rs.Simple.push
[info] # Parameters: (batchSize = 10000)
[info] # VM invoker: /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/bin/java
[info] # VM options: <none>
[info] # Fork: 2 of 3
[info] # Warmup Iteration 1: elements offered: 57753894 no demand: 25603894 (44%) queue full: 0 (0%)
[info] 18,856 ns/op
[info] # Warmup Iteration 2: elements offered: 35299764 no demand: 17249764 (48%) queue full: 0 (0%)
[info] 31,174 ns/op
[info] # Warmup Iteration 3: elements offered: 58774202 no demand: 25044202 (42%) queue full: 0 (0%)
[info] 18,730 ns/op
[info] # Warmup Iteration 4: elements offered: 56978521 no demand: 23248521 (40%) queue full: 0 (0%)
[info] 19,334 ns/op
[info] # Warmup Iteration 5: elements offered: 60290106 no demand: 25927974 (43%) queue full: 0 (0%)
[info] 18,248 ns/op
[info] # Warmup Iteration 6: elements offered: 27432625 no demand: 15602625 (56%) queue full: 0 (0%)
[info] 40,103 ns/op
[info] # Warmup Iteration 7: elements offered: 29147447 no demand: 18077447 (62%) queue full: 0 (0%)
[info] 37,764 ns/op
[info] # Warmup Iteration 8: elements offered: 48802871 no demand: 28312871 (58%) queue full: 0 (0%)
[info] 22,560 ns/op
[info] Iteration 1: elements offered: 35657957 no demand: 18327957 (51%) queue full: 0 (0%)
[info] 30,870 ns/op
[info] Iteration 2: elements offered: 66425081 no demand: 30245081 (45%) queue full: 0 (0%)
[info] 16,576 ns/op
[info] Iteration 3: elements offered: 53525569 no demand: 22245569 (41%) queue full: 0 (0%)
[info] 20,554 ns/op
[info] Iteration 4: elements offered: 28542670 no demand: 17092670 (59%) queue full: 0 (0%)
[info] 38,574 ns/op
[info] Iteration 5: elements offered: 46107676 no demand: 25407579 (55%) queue full: 0 (0%)
[info] 23,893 ns/op
[info]
[info] Result: 26,093 ±(99.9%) 33,607 ns/op [Average]
[info] Statistics: (min, avg, max) = (16,576, 26,093, 38,574), stdev = 8,728
[info] Confidence interval (99.9%): [-7,514, 59,700]
[info]
[info]
[info] # Run progress: 77,78% complete, ETA 00:01:03
[info] # Warmup: 8 iterations, 1 s each
[info] # Measurement: 5 iterations, 1 s each
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: rs.Simple.push
[info] # Parameters: (batchSize = 10000)
[info] # VM invoker: /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/bin/java
[info] # VM options: <none>
[info] # Fork: 3 of 3
[info] # Warmup Iteration 1: elements offered: 45220478 no demand: 25210478 (55%) queue full: 0 (0%)
[info] 24,108 ns/op
[info] # Warmup Iteration 2: elements offered: 39211588 no demand: 16041588 (40%) queue full: 0 (0%)
[info] 28,066 ns/op
[info] # Warmup Iteration 3: elements offered: 50582728 no demand: 26855808 (53%) queue full: 0 (0%)
[info] 21,781 ns/op
[info] # Warmup Iteration 4: elements offered: 38802850 no demand: 14982850 (38%) queue full: 0 (0%)
[info] 28,372 ns/op
[info] # Warmup Iteration 5: elements offered: 57789644 no demand: 22780356 (39%) queue full: 0 (0%)
[info] 19,040 ns/op
[info] # Warmup Iteration 6: elements offered: 37807098 no demand: 13681087 (36%) queue full: 0 (0%)
[info] 29,111 ns/op
[info] # Warmup Iteration 7: elements offered: 50789765 no demand: 26926215 (53%) queue full: 0 (0%)
[info] 21,664 ns/op
[info] # Warmup Iteration 8: elements offered: 38782384 no demand: 14970639 (38%) queue full: 0 (0%)
[info] 28,372 ns/op
[info] Iteration 1: elements offered: 55572725 no demand: 20976918 (37%) queue full: 0 (0%)
[info] 19,810 ns/op
[info] Iteration 2: elements offered: 43176682 no demand: 16036682 (37%) queue full: 0 (0%)
[info] 25,481 ns/op
[info] Iteration 3: elements offered: 56575491 no demand: 21882348 (38%) queue full: 0 (0%)
[info] 19,452 ns/op
[info] Iteration 4: elements offered: 38554526 no demand: 14545616 (37%) queue full: 0 (0%)
[info] 28,532 ns/op
[info] Iteration 5: elements offered: 43660266 no demand: 15610266 (35%) queue full: 0 (0%)
[info] 25,217 ns/op
[info]
[info] Result: 23,698 ±(99.9%) 15,160 ns/op [Average]
[info] Statistics: (min, avg, max) = (19,452, 23,698, 28,532), stdev = 3,937
[info] Confidence interval (99.9%): [8,539, 38,858]
[info]
[info]
[info] # Run progress: 83,33% complete, ETA 00:00:47
[info] # Warmup: 8 iterations, 1 s each
[info] # Measurement: 5 iterations, 1 s each
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: rs.Simple.push
[info] # Parameters: (batchSize = 100000)
[info] # VM invoker: /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/bin/java
[info] # VM options: <none>
[info] # Fork: 1 of 3
[info] # Warmup Iteration 1: elements offered: 47667820 no demand: 24567820 (51%) queue full: 0 (0%)
[info] 22,860 ns/op
[info] # Warmup Iteration 2: elements offered: 131435938 no demand: 463511 (0%) queue full: 0 (0%)
[info] 8,377 ns/op
[info] # Warmup Iteration 3: elements offered: 131062495 no demand: 1754410 (1%) queue full: 0 (0%)
[info] 8,396 ns/op
[info] # Warmup Iteration 4: elements offered: 52648518 no demand: 14657995 (27%) queue full: 0 (0%)
[info] 20,840 ns/op
[info] # Warmup Iteration 5: elements offered: 56254555 no demand: 19709380 (35%) queue full: 0 (0%)
[info] 19,578 ns/op
[info] # Warmup Iteration 6: elements offered: 54128706 no demand: 16928706 (31%) queue full: 0 (0%)
[info] 20,341 ns/op
[info] # Warmup Iteration 7: elements offered: 56325424 no demand: 19625424 (34%) queue full: 0 (0%)
[info] 19,529 ns/op
[info] # Warmup Iteration 8: elements offered: 34144119 no demand: 15644119 (45%) queue full: 0 (0%)
[info] 32,234 ns/op
[info] Iteration 1: elements offered: 33422365 no demand: 14418413 (43%) queue full: 0 (0%)
[info] 32,906 ns/op
[info] Iteration 2: elements offered: 55001665 no demand: 18901665 (34%) queue full: 0 (0%)
[info] 19,976 ns/op
[info] Iteration 3: elements offered: 55657206 no demand: 17957206 (32%) queue full: 0 (0%)
[info] 19,778 ns/op
[info] Iteration 4: elements offered: 33328132 no demand: 12928132 (38%) queue full: 0 (0%)
[info] 33,052 ns/op
[info] Iteration 5: elements offered: 37588487 no demand: 14008360 (37%) queue full: 0 (0%)
[info] 29,274 ns/op
[info]
[info] Result: 26,997 ±(99.9%) 25,699 ns/op [Average]
[info] Statistics: (min, avg, max) = (19,778, 26,997, 33,052), stdev = 6,674
[info] Confidence interval (99.9%): [1,298, 52,696]
[info]
[info]
[info] # Run progress: 88,89% complete, ETA 00:00:31
[info] # Warmup: 8 iterations, 1 s each
[info] # Measurement: 5 iterations, 1 s each
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: rs.Simple.push
[info] # Parameters: (batchSize = 100000)
[info] # VM invoker: /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/bin/java
[info] # VM options: <none>
[info] # Fork: 2 of 3
[info] # Warmup Iteration 1: elements offered: 26333338 no demand: 15127129 (57%) queue full: 0 (0%)
[info] 41,411 ns/op
[info] # Warmup Iteration 2: elements offered: 52635939 no demand: 22635939 (43%) queue full: 0 (0%)
[info] 20,902 ns/op
[info] # Warmup Iteration 3: elements offered: 58177600 no demand: 23677600 (40%) queue full: 0 (0%)
[info] 18,915 ns/op
[info] # Warmup Iteration 4: elements offered: 50135927 no demand: 18492755 (36%) queue full: 0 (0%)
[info] 21,867 ns/op
[info] # Warmup Iteration 5: elements offered: 57350088 no demand: 24750088 (43%) queue full: 0 (0%)
[info] 19,204 ns/op
[info] # Warmup Iteration 6: elements offered: 53753095 no demand: 20610502 (38%) queue full: 0 (0%)
[info] 20,461 ns/op
[info] # Warmup Iteration 7: elements offered: 57343096 no demand: 21543096 (37%) queue full: 0 (0%)
[info] 19,201 ns/op
[info] # Warmup Iteration 8: elements offered: 34583693 no demand: 13792181 (39%) queue full: 0 (0%)
[info] 31,846 ns/op
[info] Iteration 1: elements offered: 34897572 no demand: 14697572 (42%) queue full: 0 (0%)
[info] 31,542 ns/op
[info] Iteration 2: elements offered: 58867941 no demand: 24967941 (42%) queue full: 0 (0%)
[info] 18,624 ns/op
[info] Iteration 3: elements offered: 57032023 no demand: 22067687 (38%) queue full: 0 (0%)
[info] 19,296 ns/op
[info] Iteration 4: elements offered: 34377535 no demand: 14277535 (41%) queue full: 0 (0%)
[info] 32,029 ns/op
[info] Iteration 5: elements offered: 34377483 no demand: 12771911 (37%) queue full: 0 (0%)
[info] 32,393 ns/op
[info]
[info] Result: 26,777 ±(99.9%) 27,516 ns/op [Average]
[info] Statistics: (min, avg, max) = (18,624, 26,777, 32,393), stdev = 7,146
[info] Confidence interval (99.9%): [-0,739, 54,293]
[info]
[info]
[info] # Run progress: 94,44% complete, ETA 00:00:15
[info] # Warmup: 8 iterations, 1 s each
[info] # Measurement: 5 iterations, 1 s each
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: rs.Simple.push
[info] # Parameters: (batchSize = 100000)
[info] # VM invoker: /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/bin/java
[info] # VM options: <none>
[info] # Fork: 3 of 3
[info] # Warmup Iteration 1: elements offered: 28636642 no demand: 12036642 (42%) queue full: 0 (0%)
[info] 38,084 ns/op
[info] # Warmup Iteration 2: elements offered: 40919366 no demand: 11419366 (27%) queue full: 0 (0%)
[info] 26,885 ns/op
[info] # Warmup Iteration 3: elements offered: 58591891 no demand: 24702590 (42%) queue full: 0 (0%)
[info] 18,748 ns/op
[info] # Warmup Iteration 4: elements offered: 57501670 no demand: 25160049 (43%) queue full: 0 (0%)
[info] 19,146 ns/op
[info] # Warmup Iteration 5: elements offered: 54877010 no demand: 22699504 (41%) queue full: 0 (0%)
[info] 20,061 ns/op
[info] # Warmup Iteration 6: elements offered: 56113566 no demand: 24313566 (43%) queue full: 0 (0%)
[info] 19,595 ns/op
[info] # Warmup Iteration 7: elements offered: 32994426 no demand: 15394426 (46%) queue full: 0 (0%)
[info] 33,339 ns/op
[info] # Warmup Iteration 8: elements offered: 36345455 no demand: 15145455 (41%) queue full: 0 (0%)
[info] 30,283 ns/op
[info] Iteration 1: elements offered: 56490896 no demand: 23290896 (41%) queue full: 0 (0%)
[info] 19,452 ns/op
[info] Iteration 2: elements offered: 57614221 no demand: 24714221 (42%) queue full: 0 (0%)
[info] 19,109 ns/op
[info] Iteration 3: elements offered: 54409429 no demand: 22067346 (40%) queue full: 0 (0%)
[info] 20,216 ns/op
[info] Iteration 4: elements offered: 35286731 no demand: 16599336 (47%) queue full: 0 (0%)
[info] 31,175 ns/op
[info] Iteration 5: elements offered: 46010467 no demand: 19510467 (42%) queue full: 0 (0%)
[info] 23,886 ns/op
[info]
[info] Result: 22,768 ±(99.9%) 19,523 ns/op [Average]
[info] Statistics: (min, avg, max) = (19,109, 22,768, 31,175), stdev = 5,070
[info] Confidence interval (99.9%): [3,244, 42,291]
[info]
[info]
[info] # Run complete. Total time: 00:04:45
[info]
[info] Benchmark (batchSize) Mode Samples Score Score error Units
[info] r.Simple.push 1 avgt 15 99,961 17,522 ns/op
[info] r.Simple.push 10 avgt 15 56,032 5,065 ns/op
[info] r.Simple.push 100 avgt 15 29,090 6,632 ns/op
[info] r.Simple.push 1000 avgt 15 26,511 4,636 ns/op
[info] r.Simple.push 10000 avgt 15 25,217 7,190 ns/op
[info] r.Simple.push 100000 avgt 15 25,514 6,651 ns/op
[success] Total time: 288 s, completed 2014-jul-12 12:44:45
> run rs.Unbounded.push
[info] Generating JMH benchmark Java source files...
Processing 31 classes from /Users/rkuhn/comp/jmh/target/scala-2.10/classes with "reflection" generator
Writing out Java source to /Users/rkuhn/comp/jmh/target/scala-2.10/generated-sources/jmh and resources to /Users/rkuhn/comp/jmh/target/scala-2.10/classes
[info] Compiling generated JMH benchmarks...
[info] Compiling 2 Java sources to /Users/rkuhn/comp/jmh/target/scala-2.10/classes...
[warn] Note: Some input files use unchecked or unsafe operations.
[warn] Note: Recompile with -Xlint:unchecked for details.
[info] Running org.openjdk.jmh.Main rs.Unbounded.push
[info] # Run progress: 0,00% complete, ETA 00:03:54
[info] # Warmup: 8 iterations, 1 s each
[info] # Measurement: 5 iterations, 1 s each
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: rs.Unbounded.push
[info] # Parameters: (batchSize = 1)
[info] # VM invoker: /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/bin/java
[info] # VM options: <none>
[info] # Fork: 1 of 3
[info] # Warmup Iteration 1: elements offered: 48530186 no demand: 1 (0%) queue full: 42620666 (87%)
[info] 22,454 ns/op
[info] # Warmup Iteration 2: elements offered: 47245368 no demand: 1 (0%) queue full: 39817768 (84%)
[info] 23,288 ns/op
[info] # Warmup Iteration 3: elements offered: 39991169 no demand: 1 (0%) queue full: 29757762 (74%)
[info] 27,511 ns/op
[info] # Warmup Iteration 4: elements offered: 70763817 no demand: 1 (0%) queue full: 60584357 (85%)
[info] 15,560 ns/op
[info] # Warmup Iteration 5: elements offered: 57109863 no demand: 1 (0%) queue full: 48642471 (85%)
[info] 19,284 ns/op
[info] # Warmup Iteration 6: elements offered: 37877323 no demand: 1 (0%) queue full: 27179436 (71%)
[info] 29,050 ns/op
[info] # Warmup Iteration 7: elements offered: 79727386 no demand: 1 (0%) queue full: 68925231 (86%)
[info] 13,808 ns/op
[info] # Warmup Iteration 8: elements offered: 35468293 no demand: 1 (0%) queue full: 27298778 (76%)
[info] 31,020 ns/op
[info] Iteration 1: elements offered: 28272224 no demand: 1 (0%) queue full: 19490738 (68%)
[info] 38,957 ns/op
[info] Iteration 2: elements offered: 25737214 no demand: 1 (0%) queue full: 16455320 (63%)
[info] 42,752 ns/op
[info] Iteration 3: elements offered: 31443184 no demand: 1 (0%) queue full: 23763763 (75%)
[info] 35,031 ns/op
[info] Iteration 4: elements offered: 33467386 no demand: 1 (0%) queue full: 24651569 (73%)
[info] 32,879 ns/op
[info] Iteration 5: elements offered: 26781442 no demand: 1 (0%) queue full: 18093611 (67%)
[info] 41,104 ns/op
[info]
[info] Result: 38,145 ±(99.9%) 15,884 ns/op [Average]
[info] Statistics: (min, avg, max) = (32,879, 38,145, 42,752), stdev = 4,125
[info] Confidence interval (99.9%): [22,261, 54,028]
[info]
[info]
[info] # Run progress: 5,56% complete, ETA 00:04:30
[info] # Warmup: 8 iterations, 1 s each
[info] # Measurement: 5 iterations, 1 s each
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: rs.Unbounded.push
[info] # Parameters: (batchSize = 1)
[info] # VM invoker: /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/bin/java
[info] # VM options: <none>
[info] # Fork: 2 of 3
[info] # Warmup Iteration 1: elements offered: 38009413 no demand: 1 (0%) queue full: 33334738 (87%)
[info] 28,694 ns/op
[info] # Warmup Iteration 2: elements offered: 29413157 no demand: 1 (0%) queue full: 22367487 (76%)
[info] 37,444 ns/op
[info] # Warmup Iteration 3: elements offered: 41343148 no demand: 1 (0%) queue full: 32404556 (78%)
[info] 26,622 ns/op
[info] # Warmup Iteration 4: elements offered: 40824661 no demand: 1 (0%) queue full: 34187076 (83%)
[info] 26,963 ns/op
[info] # Warmup Iteration 5: elements offered: 41764002 no demand: 1 (0%) queue full: 31024238 (74%)
[info] 26,354 ns/op
[info] # Warmup Iteration 6: elements offered: 52569408 no demand: 1 (0%) queue full: 44712177 (85%)
[info] 20,932 ns/op
[info] # Warmup Iteration 7: elements offered: 37490251 no demand: 1 (0%) queue full: 30237986 (80%)
[info] 29,366 ns/op
[info] # Warmup Iteration 8: elements offered: 53397995 no demand: 1 (0%) queue full: 45469229 (85%)
[info] 20,616 ns/op
[info] Iteration 1: elements offered: 33212980 no demand: 1 (0%) queue full: 25390234 (76%)
[info] 33,141 ns/op
[info] Iteration 2: elements offered: 32336638 no demand: 1 (0%) queue full: 25083131 (77%)
[info] 34,047 ns/op
[info] Iteration 3: elements offered: 28318112 no demand: 1 (0%) queue full: 21133485 (74%)
[info] 38,900 ns/op
[info] Iteration 4: elements offered: 29088211 no demand: 1 (0%) queue full: 21081369 (72%)
[info] 37,848 ns/op
[info] Iteration 5: elements offered: 26923441 no demand: 1 (0%) queue full: 19703184 (73%)
[info] 40,863 ns/op
[info]
[info] Result: 36,960 ±(99.9%) 12,603 ns/op [Average]
[info] Statistics: (min, avg, max) = (33,141, 36,960, 40,863), stdev = 3,273
[info] Confidence interval (99.9%): [24,357, 49,563]
[info]
[info]
[info] # Run progress: 11,11% complete, ETA 00:04:14
[info] # Warmup: 8 iterations, 1 s each
[info] # Measurement: 5 iterations, 1 s each
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: rs.Unbounded.push
[info] # Parameters: (batchSize = 1)
[info] # VM invoker: /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/bin/java
[info] # VM options: <none>
[info] # Fork: 3 of 3
[info] # Warmup Iteration 1: elements offered: 50424279 no demand: 1 (0%) queue full: 44876484 (88%)
[info] 21,604 ns/op
[info] # Warmup Iteration 2: elements offered: 26072908 no demand: 1 (0%) queue full: 18145654 (69%)
[info] 42,202 ns/op
[info] # Warmup Iteration 3: elements offered: 31950635 no demand: 1 (0%) queue full: 23149814 (72%)
[info] 34,465 ns/op
[info] # Warmup Iteration 4: elements offered: 39380323 no demand: 1 (0%) queue full: 32723211 (83%)
[info] 27,967 ns/op
[info] # Warmup Iteration 5: elements offered: 39698396 no demand: 1 (0%) queue full: 31274008 (78%)
[info] 27,748 ns/op
[info] # Warmup Iteration 6: elements offered: 46280022 no demand: 1 (0%) queue full: 37510734 (81%)
[info] 23,785 ns/op
[info] # Warmup Iteration 7: elements offered: 34110589 no demand: 1 (0%) queue full: 25691058 (75%)
[info] 32,261 ns/op
[info] # Warmup Iteration 8: elements offered: 37203568 no demand: 1 (0%) queue full: 28516629 (76%)
[info] 29,595 ns/op
[info] Iteration 1: elements offered: 37576054 no demand: 1 (0%) queue full: 30989191 (82%)
[info] 29,312 ns/op
[info] Iteration 2: elements offered: 36761642 no demand: 1 (0%) queue full: 28938594 (78%)
[info] 29,924 ns/op
[info] Iteration 3: elements offered: 37858552 no demand: 1 (0%) queue full: 29003021 (76%)
[info] 29,077 ns/op
[info] Iteration 4: elements offered: 30176304 no demand: 1 (0%) queue full: 22290528 (73%)
[info] 36,462 ns/op
[info] Iteration 5: elements offered: 46105075 no demand: 1 (0%) queue full: 37935601 (82%)
[info] 23,870 ns/op
[info]
[info] Result: 29,729 ±(99.9%) 17,252 ns/op [Average]
[info] Statistics: (min, avg, max) = (23,870, 29,729, 36,462), stdev = 4,480
[info] Confidence interval (99.9%): [12,476, 46,981]
[info]
[info]
[info] # Run progress: 16,67% complete, ETA 00:03:58
[info] # Warmup: 8 iterations, 1 s each
[info] # Measurement: 5 iterations, 1 s each
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: rs.Unbounded.push
[info] # Parameters: (batchSize = 10)
[info] # VM invoker: /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/bin/java
[info] # VM options: <none>
[info] # Fork: 1 of 3
[info] # Warmup Iteration 1: elements offered: 40517595 no demand: 1 (0%) queue full: 28307810 (69%)
[info] 26,766 ns/op
[info] # Warmup Iteration 2: elements offered: 18788248 no demand: 1 (0%) queue full: 1228884 (6%)
[info] 58,580 ns/op
[info] # Warmup Iteration 3: elements offered: 30044331 no demand: 1 (0%) queue full: 15324144 (51%)
[info] 36,642 ns/op
[info] # Warmup Iteration 4: elements offered: 31445374 no demand: 1 (0%) queue full: 14427896 (45%)
[info] 34,979 ns/op
[info] # Warmup Iteration 5: elements offered: 27130298 no demand: 1 (0%) queue full: 4575026 (16%)
[info] 40,567 ns/op
[info] # Warmup Iteration 6: elements offered: 33895982 no demand: 1 (0%) queue full: 19783452 (58%)
[info] 32,483 ns/op
[info] # Warmup Iteration 7: elements offered: 26024158 no demand: 1 (0%) queue full: 6230576 (23%)
[info] 42,279 ns/op
[info] # Warmup Iteration 8: elements offered: 33130062 no demand: 1 (0%) queue full: 15243026 (46%)
[info] 33,218 ns/op
[info] Iteration 1: elements offered: 40929241 no demand: 1 (0%) queue full: 29300219 (71%)
[info] 26,864 ns/op
[info] Iteration 2: elements offered: 28570066 no demand: 1 (0%) queue full: 1857257 (6%)
[info] 38,503 ns/op
[info] Iteration 3: elements offered: 26488074 no demand: 1 (0%) queue full: 2594978 (9%)
[info] 41,588 ns/op
[info] Iteration 4: elements offered: 39248608 no demand: 1 (0%) queue full: 28171037 (71%)
[info] 28,052 ns/op
[info] Iteration 5: elements offered: 46035346 no demand: 1 (0%) queue full: 33749106 (73%)
[info] 23,917 ns/op
[info]
[info] Result: 31,785 ±(99.9%) 29,906 ns/op [Average]
[info] Statistics: (min, avg, max) = (23,917, 31,785, 41,588), stdev = 7,767
[info] Confidence interval (99.9%): [1,879, 61,691]
[info]
[info]
[info] # Run progress: 22,22% complete, ETA 00:03:42
[info] # Warmup: 8 iterations, 1 s each
[info] # Measurement: 5 iterations, 1 s each
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: rs.Unbounded.push
[info] # Parameters: (batchSize = 10)
[info] # VM invoker: /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/bin/java
[info] # VM options: <none>
[info] # Fork: 2 of 3
[info] # Warmup Iteration 1: elements offered: 38402119 no demand: 1 (0%) queue full: 25869894 (67%)
[info] 28,371 ns/op
[info] # Warmup Iteration 2: elements offered: 25011817 no demand: 1 (0%) queue full: 12460197 (49%)
[info] 44,028 ns/op
[info] # Warmup Iteration 3: elements offered: 23373839 no demand: 1 (0%) queue full: 3409017 (14%)
[info] 47,085 ns/op
[info] # Warmup Iteration 4: elements offered: 30458549 no demand: 1 (0%) queue full: 11909350 (39%)
[info] 36,120 ns/op
[info] # Warmup Iteration 5: elements offered: 31011534 no demand: 1 (0%) queue full: 16805609 (54%)
[info] 35,500 ns/op
[info] # Warmup Iteration 6: elements offered: 35587519 no demand: 1 (0%) queue full: 22819598 (64%)
[info] 30,918 ns/op
[info] # Warmup Iteration 7: elements offered: 27081914 no demand: 1 (0%) queue full: 1316776 (4%)
[info] 40,650 ns/op
[info] # Warmup Iteration 8: elements offered: 36972484 no demand: 1 (0%) queue full: 25620878 (69%)
[info] 30,091 ns/op
[info] Iteration 1: elements offered: 26216978 no demand: 1 (0%) queue full: 5553972 (21%)
[info] 41,996 ns/op
[info] Iteration 2: elements offered: 37357141 no demand: 1 (0%) queue full: 22731867 (60%)
[info] 29,466 ns/op
[info] Iteration 3: elements offered: 40318338 no demand: 1 (0%) queue full: 28364975 (70%)
[info] 27,308 ns/op
[info] Iteration 4: elements offered: 26501285 no demand: 1 (0%) queue full: 10671500 (40%)
[info] 41,544 ns/op
[info] Iteration 5: elements offered: 29429203 no demand: 1 (0%) queue full: 6483550 (22%)
[info] 37,405 ns/op
[info]
[info] Result: 35,544 ±(99.9%) 26,249 ns/op [Average]
[info] Statistics: (min, avg, max) = (27,308, 35,544, 41,996), stdev = 6,817
[info] Confidence interval (99.9%): [9,294, 61,793]
[info]
[info]
[info] # Run progress: 27,78% complete, ETA 00:03:26
[info] # Warmup: 8 iterations, 1 s each
[info] # Measurement: 5 iterations, 1 s each
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: rs.Unbounded.push
[info] # Parameters: (batchSize = 10)
[info] # VM invoker: /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/bin/java
[info] # VM options: <none>
[info] # Fork: 3 of 3
[info] # Warmup Iteration 1: elements offered: 36290830 no demand: 1 (0%) queue full: 21611093 (59%)
[info] 30,069 ns/op
[info] # Warmup Iteration 2: elements offered: 20442205 no demand: 1 (0%) queue full: 2238374 (10%)
[info] 53,876 ns/op
[info] # Warmup Iteration 3: elements offered: 30630593 no demand: 1 (0%) queue full: 15009564 (49%)
[info] 35,948 ns/op
[info] # Warmup Iteration 4: elements offered: 39558659 no demand: 1 (0%) queue full: 26830175 (67%)
[info] 27,838 ns/op
[info] # Warmup Iteration 5: elements offered: 24819492 no demand: 1 (0%) queue full: 892632 (3%)
[info] 44,364 ns/op
[info] # Warmup Iteration 6: elements offered: 41036749 no demand: 1 (0%) queue full: 28746664 (70%)
[info] 26,836 ns/op
[info] # Warmup Iteration 7: elements offered: 28932359 no demand: 1 (0%) queue full: 1798535 (6%)
[info] 38,041 ns/op
[info] # Warmup Iteration 8: elements offered: 34434146 no demand: 1 (0%) queue full: 18765872 (54%)
[info] 31,990 ns/op
[info] Iteration 1: elements offered: 44301422 no demand: 1 (0%) queue full: 32862522 (74%)
[info] 24,832 ns/op
[info] Iteration 2: elements offered: 31446810 no demand: 1 (0%) queue full: 14334040 (45%)
[info] 35,004 ns/op
[info] Iteration 3: elements offered: 28578529 no demand: 1 (0%) queue full: 15220028 (53%)
[info] 38,490 ns/op
[info] Iteration 4: elements offered: 22584633 no demand: 1 (0%) queue full: 6468397 (28%)
[info] 48,746 ns/op
[info] Iteration 5: elements offered: 25924057 no demand: 1 (0%) queue full: 5326934 (20%)
[info] 42,445 ns/op
[info]
[info] Result: 37,904 ±(99.9%) 34,322 ns/op [Average]
[info] Statistics: (min, avg, max) = (24,832, 37,904, 48,746), stdev = 8,913
[info] Confidence interval (99.9%): [3,582, 72,226]
[info]
[info]
[info] # Run progress: 33,33% complete, ETA 00:03:10
[info] # Warmup: 8 iterations, 1 s each
[info] # Measurement: 5 iterations, 1 s each
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: rs.Unbounded.push
[info] # Parameters: (batchSize = 100)
[info] # VM invoker: /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/bin/java
[info] # VM options: <none>
[info] # Fork: 1 of 3
[info] # Warmup Iteration 1: elements offered: 36604799 no demand: 1 (0%) queue full: 19146489 (52%)
[info] 29,701 ns/op
[info] # Warmup Iteration 2: elements offered: 28458531 no demand: 1 (0%) queue full: 9194488 (32%)
[info] 38,664 ns/op
[info] # Warmup Iteration 3: elements offered: 42057976 no demand: 1 (0%) queue full: 28935687 (68%)
[info] 26,162 ns/op
[info] # Warmup Iteration 4: elements offered: 43199873 no demand: 1 (0%) queue full: 419090 (0%)
[info] 25,479 ns/op
[info] # Warmup Iteration 5: elements offered: 31191869 no demand: 1 (0%) queue full: 16784280 (53%)
[info] 35,303 ns/op
[info] # Warmup Iteration 6: elements offered: 29077031 no demand: 1 (0%) queue full: 11686428 (40%)
[info] 37,835 ns/op
[info] # Warmup Iteration 7: elements offered: 37130033 no demand: 1 (0%) queue full: 14258060 (38%)
[info] 29,625 ns/op
[info] # Warmup Iteration 8: elements offered: 35415942 no demand: 1 (0%) queue full: 21494835 (60%)
[info] 31,092 ns/op
[info] Iteration 1: elements offered: 34878337 no demand: 1 (0%) queue full: 11953910 (34%)
[info] 31,555 ns/op
[info] Iteration 2: elements offered: 42260950 no demand: 1 (0%) queue full: 27525497 (65%)
[info] 26,052 ns/op
[info] Iteration 3: elements offered: 42031452 no demand: 1 (0%) queue full: 488131 (1%)
[info] 26,179 ns/op
[info] Iteration 4: elements offered: 35633338 no demand: 1 (0%) queue full: 20876756 (58%)
[info] 30,912 ns/op
[info] Iteration 5: elements offered: 35369910 no demand: 1 (0%) queue full: 20275120 (57%)
[info] 31,148 ns/op
[info]
[info] Result: 29,169 ±(99.9%) 10,771 ns/op [Average]
[info] Statistics: (min, avg, max) = (26,052, 29,169, 31,555), stdev = 2,797
[info] Confidence interval (99.9%): [18,398, 39,941]
[info]
[info]
[info] # Run progress: 38,89% complete, ETA 00:02:54
[info] # Warmup: 8 iterations, 1 s each
[info] # Measurement: 5 iterations, 1 s each
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: rs.Unbounded.push
[info] # Parameters: (batchSize = 100)
[info] # VM invoker: /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/bin/java
[info] # VM options: <none>
[info] # Fork: 2 of 3
[info] # Warmup Iteration 1: elements offered: 43759091 no demand: 1 (0%) queue full: 26626702 (60%)
[info] 24,911 ns/op
[info] # Warmup Iteration 2: elements offered: 47930597 no demand: 1 (0%) queue full: 1423842 (2%)
[info] 22,982 ns/op
[info] # Warmup Iteration 3: elements offered: 38018921 no demand: 1 (0%) queue full: 22824733 (60%)
[info] 28,961 ns/op
[info] # Warmup Iteration 4: elements offered: 40678510 no demand: 1 (0%) queue full: 26581392 (65%)
[info] 27,059 ns/op
[info] # Warmup Iteration 5: elements offered: 47683423 no demand: 1 (0%) queue full: 25051841 (52%)
[info] 23,066 ns/op
[info] # Warmup Iteration 6: elements offered: 39649797 no demand: 1 (0%) queue full: 17607421 (44%)
[info] 27,750 ns/op
[info] # Warmup Iteration 7: elements offered: 41348630 no demand: 1 (0%) queue full: 28463089 (68%)
[info] 26,631 ns/op
[info] # Warmup Iteration 8: elements offered: 40861291 no demand: 1 (0%) queue full: 6181340 (15%)
[info] 26,945 ns/op
[info] Iteration 1: elements offered: 38681230 no demand: 1 (0%) queue full: 25650799 (66%)
[info] 28,465 ns/op
[info] Iteration 2: elements offered: 36647834 no demand: 1 (0%) queue full: 8735992 (23%)
[info] 30,060 ns/op
[info] Iteration 3: elements offered: 47928474 no demand: 1 (0%) queue full: 17847010 (37%)
[info] 22,986 ns/op
[info] Iteration 4: elements offered: 38517644 no demand: 1 (0%) queue full: 26455014 (68%)
[info] 28,577 ns/op
[info] Iteration 5: elements offered: 44257614 no demand: 1 (0%) queue full: 2886088 (6%)
[info] 24,879 ns/op
[info]
[info] Result: 26,994 ±(99.9%) 11,327 ns/op [Average]
[info] Statistics: (min, avg, max) = (22,986, 26,994, 30,060), stdev = 2,942
[info] Confidence interval (99.9%): [15,667, 38,321]
[info]
[info]
[info] # Run progress: 44,44% complete, ETA 00:02:38
[info] # Warmup: 8 iterations, 1 s each
[info] # Measurement: 5 iterations, 1 s each
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: rs.Unbounded.push
[info] # Parameters: (batchSize = 100)
[info] # VM invoker: /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/bin/java
[info] # VM options: <none>
[info] # Fork: 3 of 3
[info] # Warmup Iteration 1: elements offered: 44355183 no demand: 1 (0%) queue full: 22597262 (50%)
[info] 24,492 ns/op
[info] # Warmup Iteration 2: elements offered: 32836192 no demand: 1 (0%) queue full: 458575 (1%)
[info] 33,512 ns/op
[info] # Warmup Iteration 3: elements offered: 40089364 no demand: 1 (0%) queue full: 24680916 (61%)
[info] 27,466 ns/op
[info] # Warmup Iteration 4: elements offered: 41602954 no demand: 1 (0%) queue full: 1452836 (3%)
[info] 26,474 ns/op
[info] # Warmup Iteration 5: elements offered: 32265710 no demand: 1 (0%) queue full: 17950504 (55%)
[info] 34,096 ns/op
[info] # Warmup Iteration 6: elements offered: 30943821 no demand: 1 (0%) queue full: 15774880 (50%)
[info] 35,589 ns/op
[info] # Warmup Iteration 7: elements offered: 36892538 no demand: 1 (0%) queue full: 3145446 (8%)
[info] 29,836 ns/op
[info] # Warmup Iteration 8: elements offered: 32430369 no demand: 1 (0%) queue full: 16382237 (50%)
[info] 33,946 ns/op
[info] Iteration 1: elements offered: 35519830 no demand: 1 (0%) queue full: 22570654 (63%)
[info] 31,002 ns/op
[info] Iteration 2: elements offered: 43923961 no demand: 1 (0%) queue full: 169472 (0%)
[info] 25,037 ns/op
[info] Iteration 3: elements offered: 40462611 no demand: 1 (0%) queue full: 27377765 (67%)
[info] 27,209 ns/op
[info] Iteration 4: elements offered: 34512476 no demand: 1 (0%) queue full: 21518121 (62%)
[info] 31,875 ns/op
[info] Iteration 5: elements offered: 30333863 no demand: 1 (0%) queue full: 15755244 (51%)
[info] 36,280 ns/op
[info]
[info] Result: 30,281 ±(99.9%) 16,784 ns/op [Average]
[info] Statistics: (min, avg, max) = (25,037, 30,281, 36,280), stdev = 4,359
[info] Confidence interval (99.9%): [13,497, 47,064]
[info]
[info]
[info] # Run progress: 50,00% complete, ETA 00:02:23
[info] # Warmup: 8 iterations, 1 s each
[info] # Measurement: 5 iterations, 1 s each
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: rs.Unbounded.push
[info] # Parameters: (batchSize = 1000)
[info] # VM invoker: /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/bin/java
[info] # VM options: <none>
[info] # Fork: 1 of 3
[info] # Warmup Iteration 1: elements offered: 49790002 no demand: 1 (0%) queue full: 25095479 (50%)
[info] 21,891 ns/op
[info] # Warmup Iteration 2: elements offered: 29796420 no demand: 1 (0%) queue full: 11657641 (39%)
[info] 36,949 ns/op
[info] # Warmup Iteration 3: elements offered: 63667209 no demand: 1 (0%) queue full: 320570 (0%)
[info] 17,289 ns/op
[info] # Warmup Iteration 4: elements offered: 40637240 no demand: 1 (0%) queue full: 28505297 (70%)
[info] 27,098 ns/op
[info] # Warmup Iteration 5: elements offered: 50775539 no demand: 1 (0%) queue full: 40594721 (79%)
[info] 21,666 ns/op
[info] # Warmup Iteration 6: elements offered: 58386355 no demand: 1 (0%) queue full: 4934560 (8%)
[info] 18,857 ns/op
[info] # Warmup Iteration 7: elements offered: 51434599 no demand: 1 (0%) queue full: 10830082 (21%)
[info] 21,411 ns/op
[info] # Warmup Iteration 8: elements offered: 48556653 no demand: 1 (0%) queue full: 36709786 (75%)
[info] 22,674 ns/op
[info] Iteration 1: elements offered: 59375518 no demand: 1 (0%) queue full: 13939914 (23%)
[info] 18,528 ns/op
[info] Iteration 2: elements offered: 37566832 no demand: 1 (0%) queue full: 25435073 (67%)
[info] 29,303 ns/op
[info] Iteration 3: elements offered: 49731908 no demand: 1 (0%) queue full: 38668659 (77%)
[info] 22,133 ns/op
[info] Iteration 4: elements offered: 63134682 no demand: 1 (0%) queue full: 202538 (0%)
[info] 17,437 ns/op
[info] Iteration 5: elements offered: 51058647 no demand: 1 (0%) queue full: 40075889 (78%)
[info] 21,545 ns/op
[info]
[info] Result: 21,789 ±(99.9%) 17,876 ns/op [Average]
[info] Statistics: (min, avg, max) = (17,437, 21,789, 29,303), stdev = 4,642
[info] Confidence interval (99.9%): [3,914, 39,665]
[info]
[info]
[info] # Run progress: 55,56% complete, ETA 00:02:07
[info] # Warmup: 8 iterations, 1 s each
[info] # Measurement: 5 iterations, 1 s each
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: rs.Unbounded.push
[info] # Parameters: (batchSize = 1000)
[info] # VM invoker: /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/bin/java
[info] # VM options: <none>
[info] # Fork: 2 of 3
[info] # Warmup Iteration 1: elements offered: 43099190 no demand: 1 (0%) queue full: 29607888 (68%)
[info] 25,316 ns/op
[info] # Warmup Iteration 2: elements offered: 25888618 no demand: 1 (0%) queue full: 11145589 (43%)
[info] 42,524 ns/op
[info] # Warmup Iteration 3: elements offered: 63126986 no demand: 1 (0%) queue full: 817555 (1%)
[info] 17,437 ns/op
[info] # Warmup Iteration 4: elements offered: 41542914 no demand: 1 (0%) queue full: 29945631 (72%)
[info] 26,498 ns/op
[info] # Warmup Iteration 5: elements offered: 40047229 no demand: 1 (0%) queue full: 28986499 (72%)
[info] 27,496 ns/op
[info] # Warmup Iteration 6: elements offered: 42276131 no demand: 1 (0%) queue full: 30145295 (71%)
[info] 26,055 ns/op
[info] # Warmup Iteration 7: elements offered: 64032136 no demand: 1 (0%) queue full: 1613372 (2%)
[info] 17,192 ns/op
[info] # Warmup Iteration 8: elements offered: 61904560 no demand: 1 (0%) queue full: 574764 (0%)
[info] 17,785 ns/op
[info] Iteration 1: elements offered: 38173552 no demand: 1 (0%) queue full: 26254156 (68%)
[info] 28,815 ns/op
[info] Iteration 2: elements offered: 34275987 no demand: 1 (0%) queue full: 18442157 (53%)
[info] 32,112 ns/op
[info] Iteration 3: elements offered: 65107492 no demand: 1 (0%) queue full: 85193 (0%)
[info] 16,900 ns/op
[info] Iteration 4: elements offered: 36318953 no demand: 1 (0%) queue full: 23094372 (63%)
[info] 30,311 ns/op
[info] Iteration 5: elements offered: 47144200 no demand: 1 (0%) queue full: 34839861 (73%)
[info] 23,339 ns/op
[info]
[info] Result: 26,296 ±(99.9%) 23,840 ns/op [Average]
[info] Statistics: (min, avg, max) = (16,900, 26,296, 32,112), stdev = 6,191
[info] Confidence interval (99.9%): [2,456, 50,136]
[info]
[info]
[info] # Run progress: 61,11% complete, ETA 00:01:51
[info] # Warmup: 8 iterations, 1 s each
[info] # Measurement: 5 iterations, 1 s each
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: rs.Unbounded.push
[info] # Parameters: (batchSize = 1000)
[info] # VM invoker: /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/bin/java
[info] # VM options: <none>
[info] # Fork: 3 of 3
[info] # Warmup Iteration 1: elements offered: 42705943 no demand: 1 (0%) queue full: 30937428 (72%)
[info] 25,540 ns/op
[info] # Warmup Iteration 2: elements offered: 28122934 no demand: 1 (0%) queue full: 13802740 (49%)
[info] 39,174 ns/op
[info] # Warmup Iteration 3: elements offered: 36627072 no demand: 1 (0%) queue full: 9685623 (26%)
[info] 30,056 ns/op
[info] # Warmup Iteration 4: elements offered: 52104908 no demand: 1 (0%) queue full: 40938387 (78%)
[info] 21,118 ns/op
[info] # Warmup Iteration 5: elements offered: 40784557 no demand: 1 (0%) queue full: 26097010 (63%)
[info] 26,972 ns/op
[info] # Warmup Iteration 6: elements offered: 42773592 no demand: 1 (0%) queue full: 30451487 (71%)
[info] 25,742 ns/op
[info] # Warmup Iteration 7: elements offered: 46075987 no demand: 1 (0%) queue full: 34782952 (75%)
[info] 23,899 ns/op
[info] # Warmup Iteration 8: elements offered: 62456503 no demand: 1 (0%) queue full: 337449 (0%)
[info] 17,617 ns/op
[info] Iteration 1: elements offered: 36748522 no demand: 1 (0%) queue full: 20664960 (56%)
[info] 29,941 ns/op
[info] Iteration 2: elements offered: 46304794 no demand: 1 (0%) queue full: 34446588 (74%)
[info] 23,767 ns/op
[info] Iteration 3: elements offered: 62391487 no demand: 1 (0%) queue full: 337533 (0%)
[info] 17,635 ns/op
[info] Iteration 4: elements offered: 62410397 no demand: 1 (0%) queue full: 157638 (0%)
[info] 17,634 ns/op
[info] Iteration 5: elements offered: 35649215 no demand: 1 (0%) queue full: 23084649 (64%)
[info] 30,878 ns/op
[info]
[info] Result: 23,971 ±(99.9%) 24,633 ns/op [Average]
[info] Statistics: (min, avg, max) = (17,634, 23,971, 30,878), stdev = 6,397
[info] Confidence interval (99.9%): [-0,662, 48,604]
[info]
[info]
[info] # Run progress: 66,67% complete, ETA 00:01:35
[info] # Warmup: 8 iterations, 1 s each
[info] # Measurement: 5 iterations, 1 s each
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: rs.Unbounded.push
[info] # Parameters: (batchSize = 10000)
[info] # VM invoker: /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/bin/java
[info] # VM options: <none>
[info] # Fork: 1 of 3
[info] # Warmup Iteration 1: elements offered: 44690654 no demand: 1 (0%) queue full: 30818979 (68%)
[info] 24,386 ns/op
[info] # Warmup Iteration 2: elements offered: 64244799 no demand: 1 (0%) queue full: 158804 (0%)
[info] 17,134 ns/op
[info] # Warmup Iteration 3: elements offered: 45304778 no demand: 1 (0%) queue full: 33952831 (74%)
[info] 24,879 ns/op
[info] # Warmup Iteration 4: elements offered: 61278859 no demand: 1 (0%) queue full: 5727384 (9%)
[info] 17,959 ns/op
[info] # Warmup Iteration 5: elements offered: 47208243 no demand: 1 (0%) queue full: 35450928 (75%)
[info] 23,301 ns/op
[info] # Warmup Iteration 6: elements offered: 64330116 no demand: 1 (0%) queue full: 1000601 (1%)
[info] 17,098 ns/op
[info] # Warmup Iteration 7: elements offered: 51000669 no demand: 1 (0%) queue full: 40548146 (79%)
[info] 21,575 ns/op
[info] # Warmup Iteration 8: elements offered: 63412484 no demand: 1 (0%) queue full: 1565520 (2%)
[info] 17,360 ns/op
[info] Iteration 1: elements offered: 49319881 no demand: 1 (0%) queue full: 38651829 (78%)
[info] 22,319 ns/op
[info] Iteration 2: elements offered: 63455149 no demand: 1 (0%) queue full: 1739889 (2%)
[info] 17,342 ns/op
[info] Iteration 3: elements offered: 36138316 no demand: 1 (0%) queue full: 23623480 (65%)
[info] 30,443 ns/op
[info] Iteration 4: elements offered: 43346957 no demand: 1 (0%) queue full: 30425489 (70%)
[info] 25,399 ns/op
[info] Iteration 5: elements offered: 58756731 no demand: 1 (0%) queue full: 10311076 (17%)
[info] 18,747 ns/op
[info]
[info] Result: 22,850 ±(99.9%) 20,340 ns/op [Average]
[info] Statistics: (min, avg, max) = (17,342, 22,850, 30,443), stdev = 5,282
[info] Confidence interval (99.9%): [2,510, 43,189]
[info]
[info]
[info] # Run progress: 72,22% complete, ETA 00:01:19
[info] # Warmup: 8 iterations, 1 s each
[info] # Measurement: 5 iterations, 1 s each
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: rs.Unbounded.push
[info] # Parameters: (batchSize = 10000)
[info] # VM invoker: /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/bin/java
[info] # VM options: <none>
[info] # Fork: 2 of 3
[info] # Warmup Iteration 1: elements offered: 41368137 no demand: 1 (0%) queue full: 29233048 (70%)
[info] 26,389 ns/op
[info] # Warmup Iteration 2: elements offered: 29684682 no demand: 1 (0%) queue full: 15583838 (52%)
[info] 37,089 ns/op
[info] # Warmup Iteration 3: elements offered: 46842090 no demand: 1 (0%) queue full: 11592897 (24%)
[info] 23,498 ns/op
[info] # Warmup Iteration 4: elements offered: 39786759 no demand: 1 (0%) queue full: 27394483 (68%)
[info] 27,671 ns/op
[info] # Warmup Iteration 5: elements offered: 63628256 no demand: 1 (0%) queue full: 2815370 (4%)
[info] 17,314 ns/op
[info] # Warmup Iteration 6: elements offered: 47104885 no demand: 1 (0%) queue full: 17688847 (37%)
[info] 23,369 ns/op
[info] # Warmup Iteration 7: elements offered: 74304007 no demand: 1 (0%) queue full: 213571 (0%)
[info] 14,804 ns/op
[info] # Warmup Iteration 8: elements offered: 59653593 no demand: 1 (0%) queue full: 9667082 (16%)
[info] 18,447 ns/op
[info] Iteration 1: elements offered: 49318226 no demand: 1 (0%) queue full: 39188315 (79%)
[info] 22,311 ns/op
[info] Iteration 2: elements offered: 43866116 no demand: 1 (0%) queue full: 33321441 (75%)
[info] 25,092 ns/op
[info] Iteration 3: elements offered: 47143642 no demand: 1 (0%) queue full: 35746078 (75%)
[info] 23,369 ns/op
[info] Iteration 4: elements offered: 64980459 no demand: 1 (0%) queue full: 8708191 (13%)
[info] 16,946 ns/op
[info] Iteration 5: elements offered: 53567117 no demand: 1 (0%) queue full: 24868937 (46%)
[info] 20,552 ns/op
[info]
[info] Result: 21,654 ±(99.9%) 11,959 ns/op [Average]
[info] Statistics: (min, avg, max) = (16,946, 21,654, 25,092), stdev = 3,106
[info] Confidence interval (99.9%): [9,695, 33,613]
[info]
[info]
[info] # Run progress: 77,78% complete, ETA 00:01:03
[info] # Warmup: 8 iterations, 1 s each
[info] # Measurement: 5 iterations, 1 s each
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: rs.Unbounded.push
[info] # Parameters: (batchSize = 10000)
[info] # VM invoker: /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/bin/java
[info] # VM options: <none>
[info] # Fork: 3 of 3
[info] # Warmup Iteration 1: elements offered: 43646619 no demand: 1 (0%) queue full: 32130912 (73%)
[info] 24,997 ns/op
[info] # Warmup Iteration 2: elements offered: 28482678 no demand: 1 (0%) queue full: 14344642 (50%)
[info] 38,658 ns/op
[info] # Warmup Iteration 3: elements offered: 55534386 no demand: 1 (0%) queue full: 31546326 (56%)
[info] 19,826 ns/op
[info] # Warmup Iteration 4: elements offered: 46763600 no demand: 1 (0%) queue full: 35586451 (76%)
[info] 23,519 ns/op
[info] # Warmup Iteration 5: elements offered: 61009795 no demand: 1 (0%) queue full: 7551039 (12%)
[info] 18,057 ns/op
[info] # Warmup Iteration 6: elements offered: 40366113 no demand: 1 (0%) queue full: 28347149 (70%)
[info] 27,267 ns/op
[info] # Warmup Iteration 7: elements offered: 68152634 no demand: 1 (0%) queue full: 42975 (0%)
[info] 16,145 ns/op
[info] # Warmup Iteration 8: elements offered: 32799359 no demand: 1 (0%) queue full: 18522929 (56%)
[info] 33,570 ns/op
[info] Iteration 1: elements offered: 41901878 no demand: 1 (0%) queue full: 12561982 (29%)
[info] 26,277 ns/op
[info] Iteration 2: elements offered: 37738076 no demand: 1 (0%) queue full: 24272921 (64%)
[info] 29,163 ns/op
[info] Iteration 3: elements offered: 41332456 no demand: 1 (0%) queue full: 14035898 (33%)
[info] 26,644 ns/op
[info] Iteration 4: elements offered: 34694559 no demand: 1 (0%) queue full: 21800577 (62%)
[info] 31,735 ns/op
[info] Iteration 5: elements offered: 44872700 no demand: 1 (0%) queue full: 31533521 (70%)
[info] 24,538 ns/op
[info]
[info] Result: 27,672 ±(99.9%) 10,816 ns/op [Average]
[info] Statistics: (min, avg, max) = (24,538, 27,672, 31,735), stdev = 2,809
[info] Confidence interval (99.9%): [16,855, 38,488]
[info]
[info]
[info] # Run progress: 83,33% complete, ETA 00:00:47
[info] # Warmup: 8 iterations, 1 s each
[info] # Measurement: 5 iterations, 1 s each
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: rs.Unbounded.push
[info] # Parameters: (batchSize = 100000)
[info] # VM invoker: /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/bin/java
[info] # VM options: <none>
[info] # Fork: 1 of 3
[info] # Warmup Iteration 1: elements offered: 47814847 no demand: 1 (0%) queue full: 25859550 (54%)
[info] 22,806 ns/op
[info] # Warmup Iteration 2: elements offered: 34627297 no demand: 1 (0%) queue full: 13374047 (38%)
[info] 31,795 ns/op
[info] # Warmup Iteration 3: elements offered: 73212980 no demand: 1 (0%) queue full: 1529226 (2%)
[info] 15,039 ns/op
[info] # Warmup Iteration 4: elements offered: 46848201 no demand: 1 (0%) queue full: 26693225 (56%)
[info] 23,504 ns/op
[info] # Warmup Iteration 5: elements offered: 59214590 no demand: 1 (0%) queue full: 11730436 (19%)
[info] 18,584 ns/op
[info] # Warmup Iteration 6: elements offered: 40414377 no demand: 1 (0%) queue full: 26807674 (66%)
[info] 27,137 ns/op
[info] # Warmup Iteration 7: elements offered: 46303774 no demand: 1 (0%) queue full: 35308761 (76%)
[info] 23,764 ns/op
[info] # Warmup Iteration 8: elements offered: 46711283 no demand: 1 (0%) queue full: 35602231 (76%)
[info] 23,558 ns/op
[info] Iteration 1: elements offered: 49730761 no demand: 1 (0%) queue full: 38397350 (77%)
[info] 22,131 ns/op
[info] Iteration 2: elements offered: 53054183 no demand: 1 (0%) queue full: 41770504 (78%)
[info] 20,754 ns/op
[info] Iteration 3: elements offered: 50757652 no demand: 1 (0%) queue full: 39278619 (77%)
[info] 21,693 ns/op
[info] Iteration 4: elements offered: 64274994 no demand: 1 (0%) queue full: 1545425 (2%)
[info] 17,113 ns/op
[info] Iteration 5: elements offered: 37731276 no demand: 1 (0%) queue full: 20875826 (55%)
[info] 29,117 ns/op
[info]
[info] Result: 22,162 ±(99.9%) 16,792 ns/op [Average]
[info] Statistics: (min, avg, max) = (17,113, 22,162, 29,117), stdev = 4,361
[info] Confidence interval (99.9%): [5,370, 38,953]
[info]
[info]
[info] # Run progress: 88,89% complete, ETA 00:00:31
[info] # Warmup: 8 iterations, 1 s each
[info] # Measurement: 5 iterations, 1 s each
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: rs.Unbounded.push
[info] # Parameters: (batchSize = 100000)
[info] # VM invoker: /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/bin/java
[info] # VM options: <none>
[info] # Fork: 2 of 3
[info] # Warmup Iteration 1: elements offered: 42218646 no demand: 1 (0%) queue full: 28159415 (66%)
[info] 25,849 ns/op
[info] # Warmup Iteration 2: elements offered: 65181428 no demand: 1 (0%) queue full: 300550 (0%)
[info] 16,876 ns/op
[info] # Warmup Iteration 3: elements offered: 49641321 no demand: 1 (0%) queue full: 38299604 (77%)
[info] 22,180 ns/op
[info] # Warmup Iteration 4: elements offered: 73400056 no demand: 1 (0%) queue full: 1429040 (1%)
[info] 14,996 ns/op
[info] # Warmup Iteration 5: elements offered: 52034241 no demand: 1 (0%) queue full: 40339185 (77%)
[info] 21,157 ns/op
[info] # Warmup Iteration 6: elements offered: 44923767 no demand: 1 (0%) queue full: 32654785 (72%)
[info] 24,424 ns/op
[info] # Warmup Iteration 7: elements offered: 50767862 no demand: 1 (0%) queue full: 38807094 (76%)
[info] 21,667 ns/op
[info] # Warmup Iteration 8: elements offered: 53715216 no demand: 1 (0%) queue full: 42900503 (79%)
[info] 20,475 ns/op
[info] Iteration 1: elements offered: 45280631 no demand: 1 (0%) queue full: 32569969 (71%)
[info] 24,310 ns/op
[info] Iteration 2: elements offered: 52163941 no demand: 1 (0%) queue full: 40457674 (77%)
[info] 21,090 ns/op
[info] Iteration 3: elements offered: 46784147 no demand: 1 (0%) queue full: 35921670 (76%)
[info] 23,526 ns/op
[info] Iteration 4: elements offered: 63798439 no demand: 1 (0%) queue full: 5235787 (8%)
[info] 17,244 ns/op
[info] Iteration 5: elements offered: 44424347 no demand: 1 (0%) queue full: 33357651 (75%)
[info] 24,717 ns/op
[info]
[info] Result: 22,177 ±(99.9%) 11,921 ns/op [Average]
[info] Statistics: (min, avg, max) = (17,244, 22,177, 24,717), stdev = 3,096
[info] Confidence interval (99.9%): [10,256, 34,098]
[info]
[info]
[info] # Run progress: 94,44% complete, ETA 00:00:15
[info] # Warmup: 8 iterations, 1 s each
[info] # Measurement: 5 iterations, 1 s each
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: rs.Unbounded.push
[info] # Parameters: (batchSize = 100000)
[info] # VM invoker: /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/bin/java
[info] # VM options: <none>
[info] # Fork: 3 of 3
[info] # Warmup Iteration 1: elements offered: 44433373 no demand: 1 (0%) queue full: 30262373 (68%)
[info] 24,536 ns/op
[info] # Warmup Iteration 2: elements offered: 29845979 no demand: 1 (0%) queue full: 14220373 (47%)
[info] 36,905 ns/op
[info] # Warmup Iteration 3: elements offered: 51618550 no demand: 1 (0%) queue full: 40353779 (78%)
[info] 21,333 ns/op
[info] # Warmup Iteration 4: elements offered: 51012907 no demand: 1 (0%) queue full: 38589803 (75%)
[info] 21,566 ns/op
[info] # Warmup Iteration 5: elements offered: 64640524 no demand: 1 (0%) queue full: 372578 (0%)
[info] 17,020 ns/op
[info] # Warmup Iteration 6: elements offered: 40431890 no demand: 1 (0%) queue full: 25822174 (63%)
[info] 27,112 ns/op
[info] # Warmup Iteration 7: elements offered: 51615810 no demand: 1 (0%) queue full: 39215032 (75%)
[info] 21,328 ns/op
[info] # Warmup Iteration 8: elements offered: 42105671 no demand: 1 (0%) queue full: 27639308 (65%)
[info] 26,127 ns/op
[info] Iteration 1: elements offered: 49170054 no demand: 1 (0%) queue full: 38329581 (77%)
[info] 22,388 ns/op
[info] Iteration 2: elements offered: 47035801 no demand: 1 (0%) queue full: 35751464 (76%)
[info] 23,392 ns/op
[info] Iteration 3: elements offered: 56609378 no demand: 1 (0%) queue full: 46187808 (81%)
[info] 19,439 ns/op
[info] Iteration 4: elements offered: 63165261 no demand: 1 (0%) queue full: 2172881 (3%)
[info] 17,429 ns/op
[info] Iteration 5: elements offered: 46636954 no demand: 1 (0%) queue full: 35767839 (76%)
[info] 23,498 ns/op
[info]
[info] Result: 21,229 ±(99.9%) 10,335 ns/op [Average]
[info] Statistics: (min, avg, max) = (17,429, 21,229, 23,498), stdev = 2,684
[info] Confidence interval (99.9%): [10,895, 31,564]
[info]
[info]
[info] # Run complete. Total time: 00:04:45
[info]
[info] Benchmark (batchSize) Mode Samples Score Score error Units
[info] r.Unbounded.push 1 avgt 15 34,944 5,705 ns/op
[info] r.Unbounded.push 10 avgt 15 35,077 8,282 ns/op
[info] r.Unbounded.push 100 avgt 15 28,814 3,724 ns/op
[info] r.Unbounded.push 1000 avgt 15 24,019 6,088 ns/op
[info] r.Unbounded.push 10000 avgt 15 24,058 4,808 ns/op
[info] r.Unbounded.push 100000 avgt 15 21,856 3,454 ns/op
[success] Total time: 287 s, completed 2014-jul-12 13:32:21
package rs
import org.openjdk.jmh.annotations._
import org.reactivestreams.Publisher
import org.reactivestreams.Subscriber
import org.reactivestreams.Subscription
import java.util.concurrent.atomic.AtomicLong
import java.util.Queue
import java.util.concurrent.CountDownLatch
import java.util.concurrent.TimeUnit
import uk.co.real_logic.OneToOneConcurrentArrayQueue
@BenchmarkMode(Array(Mode.AverageTime))
@OutputTimeUnit(TimeUnit.NANOSECONDS)
@State(Scope.Benchmark)
@Fork(3)
@Warmup(iterations = 8)
@Measurement(iterations = 5)
class Bounded {
trait M
case object Message extends M
class Pub extends Publisher[M] {
override def subscribe(s: Subscriber[M]): Unit = {
sub = new Subscr(s)
s.onSubscribe(sub)
}
private var sub: Subscr = _
private var nodemand = 0L
def push(elem: M): Unit = {
if (sub.hasDemand) sub.subscriber.onNext(elem)
else nodemand += 1
}
def end(): Unit = Stats.nodemand = nodemand
private class Subscr(val subscriber: Subscriber[M]) extends AtomicLong with Subscription {
override def cancel(): Unit = {}
override def request(n: Int): Unit = getAndAdd(n)
private var cachedDemand = 0L
def hasDemand(): Boolean = {
var c = cachedDemand
if (c == 0) {
cachedDemand = getAndSet(0)
c = cachedDemand
}
if (c > 0) {
cachedDemand = c - 1
true
} else false
}
}
}
class Sub(batchSize: Int) extends Subscriber[M] {
private var consumer: Thread = _
private val queue: Queue[M] = new OneToOneConcurrentArrayQueue[M](batchSize * 2)
private val started = new CountDownLatch(1)
private var full = 0L
override def onSubscribe(sub: Subscription): Unit = {
consumer = new Consumer(sub)
consumer.start()
started.await()
}
override def onNext(elem: M): Unit = {
if (!queue.offer(elem)) full += 1
}
override def onError(cause: Throwable): Unit = {
consumer.interrupt()
}
override def onComplete(): Unit = {
consumer.interrupt()
consumer.join()
Stats.queuefull = full
}
class Consumer(sub: Subscription) extends Thread {
private var consumed = 0
override def run(): Unit = {
sub.request(batchSize * 2)
started.countDown()
while (!Thread.currentThread().isInterrupted()) {
queue.poll() match {
case null ⇒ // spin
case m ⇒
assert(m == Message)
consumed += 1
if (consumed == batchSize) {
consumed = 0
sub.request(batchSize)
}
}
}
}
}
}
var publisher: Pub = null
@Param(Array("1", "10", "100", "1000", "10000", "100000")) var batchSize = 0
var subscriber: Sub = null
var offered = 0L
object Stats {
var offered = 0L
var queuefull = 0L
var nodemand = 0L
override def toString = s"elements offered: $offered no demand: $nodemand (${100*nodemand/offered}%) queue full: $queuefull (${100*queuefull/offered}%)"
}
@Setup(Level.Iteration) def setup(): Unit = {
publisher = new Pub
subscriber = new Sub(batchSize)
publisher.subscribe(subscriber)
offered = 0
}
@TearDown(Level.Iteration) def teardown(): Unit = {
publisher.end()
subscriber.onComplete()
Stats.offered = offered
println(Stats)
}
@Benchmark def push(): Unit = {
publisher.push(Message)
offered += 1
}
}
name := "jmh-test"
libraryDependencies += "org.reactivestreams" % "reactive-streams" % "0.4.0.M1"
jmhSettings
addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.1.5")
package rs
import org.openjdk.jmh.annotations._
import org.reactivestreams.Publisher
import org.reactivestreams.Subscriber
import org.reactivestreams.Subscription
import java.util.concurrent.atomic.AtomicLong
import java.util.Queue
import java.util.concurrent.CountDownLatch
import java.util.concurrent.TimeUnit
import uk.co.real_logic.OneToOneConcurrentArrayQueue
@BenchmarkMode(Array(Mode.AverageTime))
@OutputTimeUnit(TimeUnit.NANOSECONDS)
@State(Scope.Benchmark)
@Fork(3)
@Warmup(iterations = 8)
@Measurement(iterations = 5)
class Unbounded {
trait M
case object Message extends M
class Pub extends Publisher[M] {
override def subscribe(s: Subscriber[M]): Unit = {
sub = new Subscr(s)
s.onSubscribe(sub)
}
private var sub: Subscr = _
private var nodemand = 0L
def push(elem: M): Unit = {
if (sub.hasDemand) sub.subscriber.onNext(elem)
else nodemand += 1
}
def end(): Unit = Stats.nodemand = nodemand
private class Subscr(val subscriber: Subscriber[M]) extends AtomicLong with Subscription {
override def cancel(): Unit = {}
override def request(n: Int): Unit =
if (n > 0) getAndAdd(n) else set(-1)
private var cachedDemand = 0L
def hasDemand(): Boolean = {
var c = cachedDemand
if (c < 0) true
else {
if (c == 0) {
cachedDemand = getAndSet(0)
c = cachedDemand
}
if (c > 0) {
cachedDemand = c - 1
true
} else false
}
}
}
}
class Sub(batchSize: Int) extends Subscriber[M] {
private var consumer: Thread = _
private val queue: Queue[M] = new OneToOneConcurrentArrayQueue[M](batchSize * 2)
private val started = new CountDownLatch(1)
private var full = 0L
override def onSubscribe(sub: Subscription): Unit = {
consumer = new Consumer(sub)
consumer.start()
started.await()
}
override def onNext(elem: M): Unit = {
if (!queue.offer(elem)) full += 1
}
override def onError(cause: Throwable): Unit = {
consumer.interrupt()
}
override def onComplete(): Unit = {
consumer.interrupt()
consumer.join()
Stats.queuefull = full
}
class Consumer(sub: Subscription) extends Thread {
override def run(): Unit = {
sub.request(-1)
started.countDown()
while (!Thread.currentThread().isInterrupted()) {
queue.poll() match {
case null ⇒ // spin
case m ⇒
assert(m == Message)
}
}
}
}
}
var publisher: Pub = null
@Param(Array("1", "10", "100", "1000", "10000", "100000")) var batchSize = 0
var subscriber: Sub = null
var offered = 0L
object Stats {
var offered = 0L
var queuefull = 0L
var nodemand = 0L
override def toString = s"elements offered: $offered no demand: $nodemand (${100 * nodemand / offered}%) queue full: $queuefull (${100 * queuefull / offered}%)"
}
@Setup(Level.Iteration) def setup(): Unit = {
publisher = new Pub
subscriber = new Sub(batchSize)
publisher.subscribe(subscriber)
offered = 0
}
@TearDown(Level.Iteration) def teardown(): Unit = {
publisher.end()
subscriber.onComplete()
Stats.offered = offered
println(Stats)
}
@Benchmark def push(): Unit = {
publisher.push(Message)
offered += 1
}
}
@rkuhn
Copy link
Author

rkuhn commented Jul 12, 2014

For the SPSC queue see here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment