Instantly share code, notes, and snippets.

Embed
What would you like to do?
Static Groovy collection iteration benchmark results (JMH)
18:15:58: Executing task 'jmh'...
:compileJava NO-SOURCE
:compileGroovy NO-SOURCE
:processResources NO-SOURCE
:classes UP-TO-DATE
:compileTestJava NO-SOURCE
:compileTestGroovy NO-SOURCE
:processTestResources NO-SOURCE
:testClasses UP-TO-DATE
:compileJmhJava
:compileJmhGroovy
:processJmhResources NO-SOURCE
:jmhClasses
:jmhRunBytecodeGenerator
Processing 1 classes from /home/wololock/workspace/groovy-jmh/build/classes/java/jmh with "reflection" generator
Processing 4 classes from /home/wololock/workspace/groovy-jmh/build/classes/groovy/jmh with "reflection" generator
Writing out Java source to /home/wololock/workspace/groovy-jmh/build/jmh-generated-sources and resources to /home/wololock/workspace/groovy-jmh/build/jmh-generated-resources
:jmhCompileGeneratedClasses
:jmhJar
:jmh
# JMH version: 1.21
# VM version: JDK 1.8.0_162, Java HotSpot(TM) 64-Bit Server VM, 25.162-b12
# VM invoker: /usr/java/jdk1.8.0_162/jre/bin/java
# VM options: <none>
# Warmup: 1 iterations, 60 s each
# Measurement: 120 iterations, 1 s each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Average time, time/op
# Benchmark: bench.GroovyBench.eachTest
# Run progress: 0,00% complete, ETA 00:24:00
# Fork: 1 of 1
# Warmup Iteration 1: 92,107 ms/op
Iteration 1: 91,064 ms/op
Iteration 2: 90,225 ms/op
Iteration 3: 91,984 ms/op
Iteration 4: 90,730 ms/op
Iteration 5: 91,749 ms/op
Iteration 6: 91,647 ms/op
Iteration 7: 92,840 ms/op
Iteration 8: 91,845 ms/op
Iteration 9: 91,291 ms/op
Iteration 10: 91,380 ms/op
Iteration 11: 93,419 ms/op
Iteration 12: 93,318 ms/op
Iteration 13: 91,748 ms/op
Iteration 14: 92,197 ms/op
Iteration 15: 90,933 ms/op
Iteration 16: 91,257 ms/op
Iteration 17: 92,333 ms/op
Iteration 18: 91,878 ms/op
Iteration 19: 91,562 ms/op
Iteration 20: 92,127 ms/op
Iteration 21: 90,930 ms/op
Iteration 22: 91,684 ms/op
Iteration 23: 91,931 ms/op
Iteration 24: 91,250 ms/op
Iteration 25: 91,536 ms/op
Iteration 26: 91,590 ms/op
Iteration 27: 91,379 ms/op
Iteration 28: 91,906 ms/op
Iteration 29: 91,495 ms/op
Iteration 30: 92,154 ms/op
Iteration 31: 92,991 ms/op
Iteration 32: 91,106 ms/op
Iteration 33: 93,833 ms/op
Iteration 34: 91,950 ms/op
Iteration 35: 91,679 ms/op
Iteration 36: 91,226 ms/op
Iteration 37: 91,921 ms/op
Iteration 38: 92,641 ms/op
Iteration 39: 91,887 ms/op
Iteration 40: 91,870 ms/op
Iteration 41: 92,617 ms/op
Iteration 42: 93,158 ms/op
Iteration 43: 91,469 ms/op
Iteration 44: 95,590 ms/op
Iteration 45: 91,285 ms/op
Iteration 46: 91,996 ms/op
Iteration 47: 92,584 ms/op
Iteration 48: 92,417 ms/op
Iteration 49: 90,903 ms/op
Iteration 50: 90,350 ms/op
Iteration 51: 90,533 ms/op
Iteration 52: 93,195 ms/op
Iteration 53: 90,659 ms/op
Iteration 54: 91,144 ms/op
Iteration 55: 92,496 ms/op
Iteration 56: 92,059 ms/op
Iteration 57: 92,145 ms/op
Iteration 58: 91,477 ms/op
Iteration 59: 90,928 ms/op
Iteration 60: 92,123 ms/op
Iteration 61: 92,365 ms/op
Iteration 62: 95,509 ms/op
Iteration 63: 91,561 ms/op
Iteration 64: 93,693 ms/op
Iteration 65: 92,017 ms/op
Iteration 66: 93,160 ms/op
Iteration 67: 90,610 ms/op
Iteration 68: 92,855 ms/op
Iteration 69: 91,410 ms/op
Iteration 70: 91,223 ms/op
Iteration 71: 91,498 ms/op
Iteration 72: 90,782 ms/op
Iteration 73: 91,471 ms/op
Iteration 74: 90,341 ms/op
Iteration 75: 90,913 ms/op
Iteration 76: 91,235 ms/op
Iteration 77: 93,530 ms/op
Iteration 78: 91,676 ms/op
Iteration 79: 91,265 ms/op
Iteration 80: 90,895 ms/op
Iteration 81: 90,699 ms/op
Iteration 82: 90,679 ms/op
Iteration 83: 90,946 ms/op
Iteration 84: 91,379 ms/op
Iteration 85: 90,746 ms/op
Iteration 86: 93,674 ms/op
Iteration 87: 92,593 ms/op
Iteration 88: 92,293 ms/op
Iteration 89: 91,234 ms/op
Iteration 90: 91,453 ms/op
Iteration 91: 95,781 ms/op
Iteration 92: 91,120 ms/op
Iteration 93: 91,259 ms/op
Iteration 94: 93,920 ms/op
Iteration 95: 91,321 ms/op
Iteration 96: 92,004 ms/op
Iteration 97: 91,110 ms/op
Iteration 98: 91,104 ms/op
Iteration 99: 91,035 ms/op
Iteration 100: 91,188 ms/op
Iteration 101: 91,125 ms/op
Iteration 102: 91,238 ms/op
Iteration 103: 90,378 ms/op
Iteration 104: 91,026 ms/op
Iteration 105: 91,140 ms/op
Iteration 106: 91,323 ms/op
Iteration 107: 91,809 ms/op
Iteration 108: 91,954 ms/op
Iteration 109: 95,854 ms/op
Iteration 110: 91,820 ms/op
Iteration 111: 91,968 ms/op
Iteration 112: 94,275 ms/op
Iteration 113: 91,602 ms/op
Iteration 114: 92,014 ms/op
Iteration 115: 92,529 ms/op
Iteration 116: 91,175 ms/op
Iteration 117: 94,283 ms/op
Iteration 118: 91,517 ms/op
Iteration 119: 93,849 ms/op
Iteration 120: 91,653 ms/op
Result "bench.GroovyBench.eachTest":
91,897 ±(99.9%) 0,346 ms/op [Average]
(min, avg, max) = (90,225, 91,897, 95,854), stdev = 1,123
CI (99.9%): [91,552, 92,243] (assumes normal distribution)
# JMH version: 1.21
# VM version: JDK 1.8.0_162, Java HotSpot(TM) 64-Bit Server VM, 25.162-b12
# VM invoker: /usr/java/jdk1.8.0_162/jre/bin/java
# VM options: <none>
# Warmup: 1 iterations, 60 s each
# Measurement: 120 iterations, 1 s each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Average time, time/op
# Benchmark: bench.GroovyBench.forEachTest
# Run progress: 12,50% complete, ETA 00:21:33
# Fork: 1 of 1
# Warmup Iteration 1: 96,394 ms/op
Iteration 1: 97,950 ms/op
Iteration 2: 97,086 ms/op
Iteration 3: 95,898 ms/op
Iteration 4: 94,658 ms/op
Iteration 5: 93,801 ms/op
Iteration 6: 96,100 ms/op
Iteration 7: 95,890 ms/op
Iteration 8: 90,966 ms/op
Iteration 9: 95,702 ms/op
Iteration 10: 95,534 ms/op
Iteration 11: 94,283 ms/op
Iteration 12: 96,668 ms/op
Iteration 13: 96,413 ms/op
Iteration 14: 95,842 ms/op
Iteration 15: 96,368 ms/op
Iteration 16: 95,897 ms/op
Iteration 17: 95,687 ms/op
Iteration 18: 97,048 ms/op
Iteration 19: 94,678 ms/op
Iteration 20: 97,296 ms/op
Iteration 21: 97,642 ms/op
Iteration 22: 96,597 ms/op
Iteration 23: 99,140 ms/op
Iteration 24: 98,285 ms/op
Iteration 25: 93,582 ms/op
Iteration 26: 97,215 ms/op
Iteration 27: 95,291 ms/op
Iteration 28: 97,454 ms/op
Iteration 29: 99,034 ms/op
Iteration 30: 97,106 ms/op
Iteration 31: 97,018 ms/op
Iteration 32: 96,213 ms/op
Iteration 33: 98,152 ms/op
Iteration 34: 94,384 ms/op
Iteration 35: 97,121 ms/op
Iteration 36: 92,183 ms/op
Iteration 37: 96,377 ms/op
Iteration 38: 96,688 ms/op
Iteration 39: 96,817 ms/op
Iteration 40: 97,222 ms/op
Iteration 41: 95,442 ms/op
Iteration 42: 97,572 ms/op
Iteration 43: 97,926 ms/op
Iteration 44: 96,255 ms/op
Iteration 45: 97,011 ms/op
Iteration 46: 95,468 ms/op
Iteration 47: 96,124 ms/op
Iteration 48: 99,518 ms/op
Iteration 49: 99,722 ms/op
Iteration 50: 97,584 ms/op
Iteration 51: 96,158 ms/op
Iteration 52: 97,542 ms/op
Iteration 53: 97,415 ms/op
Iteration 54: 98,175 ms/op
Iteration 55: 97,964 ms/op
Iteration 56: 92,876 ms/op
Iteration 57: 97,586 ms/op
Iteration 58: 94,879 ms/op
Iteration 59: 97,880 ms/op
Iteration 60: 96,394 ms/op
Iteration 61: 97,111 ms/op
Iteration 62: 97,862 ms/op
Iteration 63: 97,564 ms/op
Iteration 64: 96,760 ms/op
Iteration 65: 96,327 ms/op
Iteration 66: 95,506 ms/op
Iteration 67: 99,407 ms/op
Iteration 68: 93,693 ms/op
Iteration 69: 98,376 ms/op
Iteration 70: 97,898 ms/op
Iteration 71: 97,440 ms/op
Iteration 72: 94,408 ms/op
Iteration 73: 97,412 ms/op
Iteration 74: 96,351 ms/op
Iteration 75: 96,205 ms/op
Iteration 76: 96,859 ms/op
Iteration 77: 96,569 ms/op
Iteration 78: 91,809 ms/op
Iteration 79: 93,949 ms/op
Iteration 80: 97,063 ms/op
Iteration 81: 96,214 ms/op
Iteration 82: 96,786 ms/op
Iteration 83: 97,775 ms/op
Iteration 84: 93,481 ms/op
Iteration 85: 93,449 ms/op
Iteration 86: 94,717 ms/op
Iteration 87: 95,251 ms/op
Iteration 88: 93,036 ms/op
Iteration 89: 94,661 ms/op
Iteration 90: 98,319 ms/op
Iteration 91: 97,249 ms/op
Iteration 92: 98,078 ms/op
Iteration 93: 96,824 ms/op
Iteration 94: 96,417 ms/op
Iteration 95: 99,413 ms/op
Iteration 96: 96,347 ms/op
Iteration 97: 97,311 ms/op
Iteration 98: 96,832 ms/op
Iteration 99: 99,764 ms/op
Iteration 100: 96,872 ms/op
Iteration 101: 95,228 ms/op
Iteration 102: 96,677 ms/op
Iteration 103: 92,911 ms/op
Iteration 104: 97,540 ms/op
Iteration 105: 100,081 ms/op
Iteration 106: 93,299 ms/op
Iteration 107: 97,926 ms/op
Iteration 108: 97,495 ms/op
Iteration 109: 99,341 ms/op
Iteration 110: 97,301 ms/op
Iteration 111: 98,644 ms/op
Iteration 112: 97,098 ms/op
Iteration 113: 92,318 ms/op
Iteration 114: 94,404 ms/op
Iteration 115: 96,284 ms/op
Iteration 116: 98,123 ms/op
Iteration 117: 96,390 ms/op
Iteration 118: 95,176 ms/op
Iteration 119: 94,875 ms/op
Iteration 120: 95,433 ms/op
Result "bench.GroovyBench.forEachTest":
96,422 ±(99.9%) 0,550 ms/op [Average]
(min, avg, max) = (90,966, 96,422, 100,081), stdev = 1,785
CI (99.9%): [95,873, 96,972] (assumes normal distribution)
# JMH version: 1.21
# VM version: JDK 1.8.0_162, Java HotSpot(TM) 64-Bit Server VM, 25.162-b12
# VM invoker: /usr/java/jdk1.8.0_162/jre/bin/java
# VM options: <none>
# Warmup: 1 iterations, 60 s each
# Measurement: 120 iterations, 1 s each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Average time, time/op
# Benchmark: bench.GroovyBench.forLoopTest
# Run progress: 25,00% complete, ETA 00:18:41
# Fork: 1 of 1
# Warmup Iteration 1: 139,287 ms/op
Iteration 1: 139,374 ms/op
Iteration 2: 138,570 ms/op
Iteration 3: 139,794 ms/op
Iteration 4: 138,369 ms/op
Iteration 5: 139,114 ms/op
Iteration 6: 139,375 ms/op
Iteration 7: 139,106 ms/op
Iteration 8: 137,633 ms/op
Iteration 9: 139,356 ms/op
Iteration 10: 137,985 ms/op
Iteration 11: 137,552 ms/op
Iteration 12: 138,807 ms/op
Iteration 13: 137,769 ms/op
Iteration 14: 138,496 ms/op
Iteration 15: 138,093 ms/op
Iteration 16: 137,775 ms/op
Iteration 17: 138,180 ms/op
Iteration 18: 138,346 ms/op
Iteration 19: 138,654 ms/op
Iteration 20: 143,538 ms/op
Iteration 21: 138,346 ms/op
Iteration 22: 140,357 ms/op
Iteration 23: 139,141 ms/op
Iteration 24: 137,783 ms/op
Iteration 25: 138,804 ms/op
Iteration 26: 138,684 ms/op
Iteration 27: 138,762 ms/op
Iteration 28: 138,392 ms/op
Iteration 29: 137,939 ms/op
Iteration 30: 139,628 ms/op
Iteration 31: 140,533 ms/op
Iteration 32: 140,702 ms/op
Iteration 33: 137,437 ms/op
Iteration 34: 141,984 ms/op
Iteration 35: 137,290 ms/op
Iteration 36: 137,814 ms/op
Iteration 37: 136,727 ms/op
Iteration 38: 139,351 ms/op
Iteration 39: 139,889 ms/op
Iteration 40: 137,985 ms/op
Iteration 41: 138,175 ms/op
Iteration 42: 137,531 ms/op
Iteration 43: 137,461 ms/op
Iteration 44: 137,909 ms/op
Iteration 45: 137,440 ms/op
Iteration 46: 138,344 ms/op
Iteration 47: 139,101 ms/op
Iteration 48: 139,329 ms/op
Iteration 49: 138,565 ms/op
Iteration 50: 139,956 ms/op
Iteration 51: 138,748 ms/op
Iteration 52: 140,261 ms/op
Iteration 53: 149,147 ms/op
Iteration 54: 138,773 ms/op
Iteration 55: 138,591 ms/op
Iteration 56: 138,554 ms/op
Iteration 57: 140,995 ms/op
Iteration 58: 143,156 ms/op
Iteration 59: 137,197 ms/op
Iteration 60: 138,119 ms/op
Iteration 61: 137,725 ms/op
Iteration 62: 137,598 ms/op
Iteration 63: 138,934 ms/op
Iteration 64: 139,331 ms/op
Iteration 65: 138,607 ms/op
Iteration 66: 138,690 ms/op
Iteration 67: 139,307 ms/op
Iteration 68: 139,428 ms/op
Iteration 69: 137,545 ms/op
Iteration 70: 140,984 ms/op
Iteration 71: 137,875 ms/op
Iteration 72: 137,245 ms/op
Iteration 73: 137,976 ms/op
Iteration 74: 139,305 ms/op
Iteration 75: 137,636 ms/op
Iteration 76: 138,715 ms/op
Iteration 77: 138,079 ms/op
Iteration 78: 139,094 ms/op
Iteration 79: 138,364 ms/op
Iteration 80: 137,093 ms/op
Iteration 81: 138,264 ms/op
Iteration 82: 139,853 ms/op
Iteration 83: 147,600 ms/op
Iteration 84: 137,523 ms/op
Iteration 85: 138,940 ms/op
Iteration 86: 138,651 ms/op
Iteration 87: 139,109 ms/op
Iteration 88: 137,486 ms/op
Iteration 89: 138,022 ms/op
Iteration 90: 138,201 ms/op
Iteration 91: 137,647 ms/op
Iteration 92: 139,459 ms/op
Iteration 93: 137,847 ms/op
Iteration 94: 155,513 ms/op
Iteration 95: 139,477 ms/op
Iteration 96: 145,952 ms/op
Iteration 97: 140,116 ms/op
Iteration 98: 138,603 ms/op
Iteration 99: 138,951 ms/op
Iteration 100: 138,369 ms/op
Iteration 101: 139,840 ms/op
Iteration 102: 138,162 ms/op
Iteration 103: 139,849 ms/op
Iteration 104: 139,125 ms/op
Iteration 105: 140,064 ms/op
Iteration 106: 139,326 ms/op
Iteration 107: 137,846 ms/op
Iteration 108: 137,933 ms/op
Iteration 109: 137,907 ms/op
Iteration 110: 138,278 ms/op
Iteration 111: 138,228 ms/op
Iteration 112: 139,088 ms/op
Iteration 113: 138,910 ms/op
Iteration 114: 137,791 ms/op
Iteration 115: 141,017 ms/op
Iteration 116: 138,178 ms/op
Iteration 117: 140,425 ms/op
Iteration 118: 137,470 ms/op
Iteration 119: 139,060 ms/op
Iteration 120: 139,866 ms/op
Result "bench.GroovyBench.forLoopTest":
139,119 ±(99.9%) 0,723 ms/op [Average]
(min, avg, max) = (136,727, 139,119, 155,513), stdev = 2,347
CI (99.9%): [138,396, 139,842] (assumes normal distribution)
# JMH version: 1.21
# VM version: JDK 1.8.0_162, Java HotSpot(TM) 64-Bit Server VM, 25.162-b12
# VM invoker: /usr/java/jdk1.8.0_162/jre/bin/java
# VM options: <none>
# Warmup: 1 iterations, 60 s each
# Measurement: 120 iterations, 1 s each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Average time, time/op
# Benchmark: bench.GroovyBench.iteratorTest
# Run progress: 37,50% complete, ETA 00:15:47
# Fork: 1 of 1
# Warmup Iteration 1: 103,806 ms/op
Iteration 1: 106,486 ms/op
Iteration 2: 100,863 ms/op
Iteration 3: 103,389 ms/op
Iteration 4: 102,479 ms/op
Iteration 5: 105,065 ms/op
Iteration 6: 108,504 ms/op
Iteration 7: 100,980 ms/op
Iteration 8: 101,703 ms/op
Iteration 9: 99,135 ms/op
Iteration 10: 102,652 ms/op
Iteration 11: 101,962 ms/op
Iteration 12: 100,306 ms/op
Iteration 13: 102,125 ms/op
Iteration 14: 101,755 ms/op
Iteration 15: 106,870 ms/op
Iteration 16: 103,789 ms/op
Iteration 17: 104,127 ms/op
Iteration 18: 104,057 ms/op
Iteration 19: 104,289 ms/op
Iteration 20: 104,204 ms/op
Iteration 21: 102,155 ms/op
Iteration 22: 101,618 ms/op
Iteration 23: 104,368 ms/op
Iteration 24: 105,261 ms/op
Iteration 25: 104,973 ms/op
Iteration 26: 103,904 ms/op
Iteration 27: 100,716 ms/op
Iteration 28: 99,213 ms/op
Iteration 29: 105,586 ms/op
Iteration 30: 104,987 ms/op
Iteration 31: 100,259 ms/op
Iteration 32: 101,542 ms/op
Iteration 33: 101,852 ms/op
Iteration 34: 102,448 ms/op
Iteration 35: 107,210 ms/op
Iteration 36: 104,421 ms/op
Iteration 37: 102,523 ms/op
Iteration 38: 101,601 ms/op
Iteration 39: 100,737 ms/op
Iteration 40: 103,549 ms/op
Iteration 41: 103,442 ms/op
Iteration 42: 100,324 ms/op
Iteration 43: 109,993 ms/op
Iteration 44: 103,798 ms/op
Iteration 45: 105,111 ms/op
Iteration 46: 102,130 ms/op
Iteration 47: 109,369 ms/op
Iteration 48: 104,227 ms/op
Iteration 49: 103,351 ms/op
Iteration 50: 104,250 ms/op
Iteration 51: 104,355 ms/op
Iteration 52: 102,985 ms/op
Iteration 53: 102,810 ms/op
Iteration 54: 101,752 ms/op
Iteration 55: 103,229 ms/op
Iteration 56: 103,855 ms/op
Iteration 57: 104,992 ms/op
Iteration 58: 103,291 ms/op
Iteration 59: 103,884 ms/op
Iteration 60: 105,013 ms/op
Iteration 61: 102,748 ms/op
Iteration 62: 102,082 ms/op
Iteration 63: 105,070 ms/op
Iteration 64: 100,931 ms/op
Iteration 65: 103,768 ms/op
Iteration 66: 104,510 ms/op
Iteration 67: 102,270 ms/op
Iteration 68: 103,210 ms/op
Iteration 69: 102,969 ms/op
Iteration 70: 105,294 ms/op
Iteration 71: 104,297 ms/op
Iteration 72: 105,464 ms/op
Iteration 73: 101,677 ms/op
Iteration 74: 102,717 ms/op
Iteration 75: 105,804 ms/op
Iteration 76: 104,436 ms/op
Iteration 77: 103,061 ms/op
Iteration 78: 104,155 ms/op
Iteration 79: 102,683 ms/op
Iteration 80: 104,175 ms/op
Iteration 81: 102,097 ms/op
Iteration 82: 102,884 ms/op
Iteration 83: 106,070 ms/op
Iteration 84: 102,496 ms/op
Iteration 85: 110,119 ms/op
Iteration 86: 107,123 ms/op
Iteration 87: 106,920 ms/op
Iteration 88: 104,645 ms/op
Iteration 89: 104,934 ms/op
Iteration 90: 101,356 ms/op
Iteration 91: 103,297 ms/op
Iteration 92: 99,197 ms/op
Iteration 93: 99,972 ms/op
Iteration 94: 101,865 ms/op
Iteration 95: 103,883 ms/op
Iteration 96: 104,507 ms/op
Iteration 97: 105,162 ms/op
Iteration 98: 107,042 ms/op
Iteration 99: 105,706 ms/op
Iteration 100: 102,684 ms/op
Iteration 101: 104,212 ms/op
Iteration 102: 102,688 ms/op
Iteration 103: 102,340 ms/op
Iteration 104: 102,570 ms/op
Iteration 105: 103,577 ms/op
Iteration 106: 102,580 ms/op
Iteration 107: 107,436 ms/op
Iteration 108: 102,837 ms/op
Iteration 109: 98,863 ms/op
Iteration 110: 103,257 ms/op
Iteration 111: 102,667 ms/op
Iteration 112: 102,497 ms/op
Iteration 113: 105,694 ms/op
Iteration 114: 105,222 ms/op
Iteration 115: 103,447 ms/op
Iteration 116: 103,174 ms/op
Iteration 117: 102,446 ms/op
Iteration 118: 104,716 ms/op
Iteration 119: 104,811 ms/op
Iteration 120: 104,064 ms/op
Result "bench.GroovyBench.iteratorTest":
103,568 ±(99.9%) 0,648 ms/op [Average]
(min, avg, max) = (98,863, 103,568, 110,119), stdev = 2,105
CI (99.9%): [102,920, 104,217] (assumes normal distribution)
# JMH version: 1.21
# VM version: JDK 1.8.0_162, Java HotSpot(TM) 64-Bit Server VM, 25.162-b12
# VM invoker: /usr/java/jdk1.8.0_162/jre/bin/java
# VM options: <none>
# Warmup: 1 iterations, 60 s each
# Measurement: 120 iterations, 1 s each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Average time, time/op
# Benchmark: bench.GroovyBench.java8ForEachWithAnonymousClassTest
# Run progress: 50,00% complete, ETA 00:12:35
# Fork: 1 of 1
# Warmup Iteration 1: 101,888 ms/op
Iteration 1: 107,539 ms/op
Iteration 2: 110,433 ms/op
Iteration 3: 114,605 ms/op
Iteration 4: 101,979 ms/op
Iteration 5: 96,445 ms/op
Iteration 6: 99,893 ms/op
Iteration 7: 103,517 ms/op
Iteration 8: 95,250 ms/op
Iteration 9: 113,159 ms/op
Iteration 10: 105,452 ms/op
Iteration 11: 103,277 ms/op
Iteration 12: 96,809 ms/op
Iteration 13: 97,703 ms/op
Iteration 14: 94,748 ms/op
Iteration 15: 103,520 ms/op
Iteration 16: 108,518 ms/op
Iteration 17: 101,299 ms/op
Iteration 18: 98,100 ms/op
Iteration 19: 103,679 ms/op
Iteration 20: 114,427 ms/op
Iteration 21: 113,838 ms/op
Iteration 22: 112,233 ms/op
Iteration 23: 112,016 ms/op
Iteration 24: 120,600 ms/op
Iteration 25: 115,022 ms/op
Iteration 26: 115,345 ms/op
Iteration 27: 113,046 ms/op
Iteration 28: 101,331 ms/op
Iteration 29: 114,946 ms/op
Iteration 30: 96,066 ms/op
Iteration 31: 102,489 ms/op
Iteration 32: 101,857 ms/op
Iteration 33: 96,660 ms/op
Iteration 34: 109,849 ms/op
Iteration 35: 113,566 ms/op
Iteration 36: 113,691 ms/op
Iteration 37: 112,999 ms/op
Iteration 38: 104,590 ms/op
Iteration 39: 97,312 ms/op
Iteration 40: 91,887 ms/op
Iteration 41: 105,422 ms/op
Iteration 42: 90,806 ms/op
Iteration 43: 93,581 ms/op
Iteration 44: 88,858 ms/op
Iteration 45: 101,257 ms/op
Iteration 46: 98,163 ms/op
Iteration 47: 95,138 ms/op
Iteration 48: 97,591 ms/op
Iteration 49: 91,543 ms/op
Iteration 50: 93,622 ms/op
Iteration 51: 95,566 ms/op
Iteration 52: 103,249 ms/op
Iteration 53: 95,524 ms/op
Iteration 54: 91,153 ms/op
Iteration 55: 91,062 ms/op
Iteration 56: 89,546 ms/op
Iteration 57: 98,148 ms/op
Iteration 58: 109,531 ms/op
Iteration 59: 96,401 ms/op
Iteration 60: 98,915 ms/op
Iteration 61: 109,505 ms/op
Iteration 62: 98,301 ms/op
Iteration 63: 106,398 ms/op
Iteration 64: 114,008 ms/op
Iteration 65: 112,055 ms/op
Iteration 66: 117,820 ms/op
Iteration 67: 113,475 ms/op
Iteration 68: 111,681 ms/op
Iteration 69: 107,813 ms/op
Iteration 70: 94,136 ms/op
Iteration 71: 89,607 ms/op
Iteration 72: 96,176 ms/op
Iteration 73: 97,890 ms/op
Iteration 74: 102,359 ms/op
Iteration 75: 107,419 ms/op
Iteration 76: 97,731 ms/op
Iteration 77: 97,284 ms/op
Iteration 78: 102,971 ms/op
Iteration 79: 89,281 ms/op
Iteration 80: 100,127 ms/op
Iteration 81: 96,601 ms/op
Iteration 82: 95,002 ms/op
Iteration 83: 104,987 ms/op
Iteration 84: 113,572 ms/op
Iteration 85: 106,393 ms/op
Iteration 86: 88,292 ms/op
Iteration 87: 93,865 ms/op
Iteration 88: 106,005 ms/op
Iteration 89: 113,760 ms/op
Iteration 90: 105,920 ms/op
Iteration 91: 90,946 ms/op
Iteration 92: 96,859 ms/op
Iteration 93: 93,503 ms/op
Iteration 94: 95,496 ms/op
Iteration 95: 95,139 ms/op
Iteration 96: 98,729 ms/op
Iteration 97: 104,157 ms/op
Iteration 98: 117,017 ms/op
Iteration 99: 114,802 ms/op
Iteration 100: 116,915 ms/op
Iteration 101: 104,393 ms/op
Iteration 102: 95,629 ms/op
Iteration 103: 94,980 ms/op
Iteration 104: 101,998 ms/op
Iteration 105: 98,182 ms/op
Iteration 106: 98,251 ms/op
Iteration 107: 97,605 ms/op
Iteration 108: 110,211 ms/op
Iteration 109: 114,389 ms/op
Iteration 110: 110,558 ms/op
Iteration 111: 97,420 ms/op
Iteration 112: 98,060 ms/op
Iteration 113: 104,988 ms/op
Iteration 114: 97,911 ms/op
Iteration 115: 93,005 ms/op
Iteration 116: 111,285 ms/op
Iteration 117: 93,344 ms/op
Iteration 118: 101,855 ms/op
Iteration 119: 101,082 ms/op
Iteration 120: 101,331 ms/op
Result "bench.GroovyBench.java8ForEachWithAnonymousClassTest":
102,460 ±(99.9%) 2,473 ms/op [Average]
(min, avg, max) = (88,292, 102,460, 120,600), stdev = 8,029
CI (99.9%): [99,987, 104,934] (assumes normal distribution)
# JMH version: 1.21
# VM version: JDK 1.8.0_162, Java HotSpot(TM) 64-Bit Server VM, 25.162-b12
# VM invoker: /usr/java/jdk1.8.0_162/jre/bin/java
# VM options: <none>
# Warmup: 1 iterations, 60 s each
# Measurement: 120 iterations, 1 s each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Average time, time/op
# Benchmark: bench.GroovyBench.java8ForEachWithClosureTest
# Run progress: 62,50% complete, ETA 00:09:25
# Fork: 1 of 1
# Warmup Iteration 1: 404,401 ms/op
Iteration 1: 397,344 ms/op
Iteration 2: 402,331 ms/op
Iteration 3: 401,475 ms/op
Iteration 4: 398,559 ms/op
Iteration 5: 402,720 ms/op
Iteration 6: 399,643 ms/op
Iteration 7: 402,320 ms/op
Iteration 8: 400,445 ms/op
Iteration 9: 398,553 ms/op
Iteration 10: 401,632 ms/op
Iteration 11: 400,287 ms/op
Iteration 12: 403,159 ms/op
Iteration 13: 405,368 ms/op
Iteration 14: 404,151 ms/op
Iteration 15: 401,048 ms/op
Iteration 16: 400,805 ms/op
Iteration 17: 402,862 ms/op
Iteration 18: 400,397 ms/op
Iteration 19: 402,558 ms/op
Iteration 20: 396,105 ms/op
Iteration 21: 401,944 ms/op
Iteration 22: 401,488 ms/op
Iteration 23: 401,293 ms/op
Iteration 24: 397,829 ms/op
Iteration 25: 402,975 ms/op
Iteration 26: 398,521 ms/op
Iteration 27: 404,265 ms/op
Iteration 28: 402,422 ms/op
Iteration 29: 402,702 ms/op
Iteration 30: 401,730 ms/op
Iteration 31: 399,113 ms/op
Iteration 32: 404,667 ms/op
Iteration 33: 403,560 ms/op
Iteration 34: 405,011 ms/op
Iteration 35: 396,539 ms/op
Iteration 36: 401,032 ms/op
Iteration 37: 400,759 ms/op
Iteration 38: 402,873 ms/op
Iteration 39: 404,022 ms/op
Iteration 40: 396,752 ms/op
Iteration 41: 398,644 ms/op
Iteration 42: 399,695 ms/op
Iteration 43: 399,076 ms/op
Iteration 44: 401,889 ms/op
Iteration 45: 402,042 ms/op
Iteration 46: 402,198 ms/op
Iteration 47: 404,983 ms/op
Iteration 48: 403,750 ms/op
Iteration 49: 400,730 ms/op
Iteration 50: 400,898 ms/op
Iteration 51: 406,667 ms/op
Iteration 52: 413,555 ms/op
Iteration 53: 395,875 ms/op
Iteration 54: 397,782 ms/op
Iteration 55: 397,772 ms/op
Iteration 56: 396,624 ms/op
Iteration 57: 396,705 ms/op
Iteration 58: 399,653 ms/op
Iteration 59: 397,688 ms/op
Iteration 60: 399,559 ms/op
Iteration 61: 395,310 ms/op
Iteration 62: 399,395 ms/op
Iteration 63: 400,965 ms/op
Iteration 64: 396,877 ms/op
Iteration 65: 397,828 ms/op
Iteration 66: 395,834 ms/op
Iteration 67: 398,842 ms/op
Iteration 68: 395,554 ms/op
Iteration 69: 397,687 ms/op
Iteration 70: 397,550 ms/op
Iteration 71: 400,320 ms/op
Iteration 72: 398,835 ms/op
Iteration 73: 399,360 ms/op
Iteration 74: 397,662 ms/op
Iteration 75: 398,735 ms/op
Iteration 76: 395,090 ms/op
Iteration 77: 400,610 ms/op
Iteration 78: 396,844 ms/op
Iteration 79: 398,672 ms/op
Iteration 80: 400,580 ms/op
Iteration 81: 399,412 ms/op
Iteration 82: 400,113 ms/op
Iteration 83: 407,555 ms/op
Iteration 84: 393,433 ms/op
Iteration 85: 398,638 ms/op
Iteration 86: 394,524 ms/op
Iteration 87: 396,091 ms/op
Iteration 88: 404,848 ms/op
Iteration 89: 394,427 ms/op
Iteration 90: 399,135 ms/op
Iteration 91: 393,420 ms/op
Iteration 92: 400,449 ms/op
Iteration 93: 398,741 ms/op
Iteration 94: 397,740 ms/op
Iteration 95: 395,254 ms/op
Iteration 96: 396,640 ms/op
Iteration 97: 401,453 ms/op
Iteration 98: 409,496 ms/op
Iteration 99: 400,633 ms/op
Iteration 100: 399,971 ms/op
Iteration 101: 399,609 ms/op
Iteration 102: 402,593 ms/op
Iteration 103: 403,905 ms/op
Iteration 104: 400,122 ms/op
Iteration 105: 404,050 ms/op
Iteration 106: 399,103 ms/op
Iteration 107: 405,073 ms/op
Iteration 108: 401,469 ms/op
Iteration 109: 404,520 ms/op
Iteration 110: 398,830 ms/op
Iteration 111: 401,311 ms/op
Iteration 112: 402,659 ms/op
Iteration 113: 408,441 ms/op
Iteration 114: 402,294 ms/op
Iteration 115: 403,053 ms/op
Iteration 116: 401,919 ms/op
Iteration 117: 405,964 ms/op
Iteration 118: 401,297 ms/op
Iteration 119: 397,788 ms/op
Iteration 120: 402,161 ms/op
Result "bench.GroovyBench.java8ForEachWithClosureTest":
400,481 ±(99.9%) 1,036 ms/op [Average]
(min, avg, max) = (393,420, 400,481, 413,555), stdev = 3,364
CI (99.9%): [399,445, 401,517] (assumes normal distribution)
# Run complete. Total time: 00:19:14
REMEMBER: The numbers below are just data. To gain reusable insights, you need to follow up on
why the numbers are the way they are. Use profilers (see -prof, -lprof), design factorial
experiments, perform baseline and negative tests that provide experimental control, make sure
the benchmarking environment is safe on JVM/OS/HW level, ask for reviews from the domain experts.
Do not assume the numbers tell you what you want them to tell.
Benchmark Mode Cnt Score Error Units
GroovyBench.eachTest avgt 120 91,897 ± 0,346 ms/op
GroovyBench.forEachTest avgt 120 96,422 ± 0,550 ms/op
GroovyBench.forLoopTest avgt 120 139,119 ± 0,723 ms/op
GroovyBench.iteratorTest avgt 120 103,568 ± 0,648 ms/op
GroovyBench.java8ForEachWithAnonymousClassTest avgt 120 102,460 ± 2,473 ms/op
GroovyBench.java8ForEachWithClosureTest avgt 120 400,481 ± 1,036 ms/op
Benchmark result is saved to /home/wololock/workspace/groovy-jmh/build/reports/jmh/results.txt
BUILD SUCCESSFUL in 25m 18s
6 actionable tasks: 6 executed
18:41:17: Task execution finished 'jmh'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment