Instantly share code, notes, and snippets.

Embed
What would you like to do?
Static Groovy collection iteration benchmark result for 10k collection size (JMH)
18:49:37: 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 NO-SOURCE
:compileJmhGroovy
:processJmhResources NO-SOURCE
:jmhClasses
:jmhRunBytecodeGenerator
Processing 0 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:18:00
# Fork: 1 of 1
# Warmup Iteration 1: 0,086 ms/op
Iteration 1: 0,092 ms/op
Iteration 2: 0,095 ms/op
Iteration 3: 0,092 ms/op
Iteration 4: 0,092 ms/op
Iteration 5: 0,091 ms/op
Iteration 6: 0,088 ms/op
Iteration 7: 0,085 ms/op
Iteration 8: 0,085 ms/op
Iteration 9: 0,084 ms/op
Iteration 10: 0,085 ms/op
Iteration 11: 0,085 ms/op
Iteration 12: 0,085 ms/op
Iteration 13: 0,084 ms/op
Iteration 14: 0,084 ms/op
Iteration 15: 0,085 ms/op
Iteration 16: 0,085 ms/op
Iteration 17: 0,085 ms/op
Iteration 18: 0,084 ms/op
Iteration 19: 0,084 ms/op
Iteration 20: 0,084 ms/op
Iteration 21: 0,087 ms/op
Iteration 22: 0,087 ms/op
Iteration 23: 0,086 ms/op
Iteration 24: 0,085 ms/op
Iteration 25: 0,084 ms/op
Iteration 26: 0,083 ms/op
Iteration 27: 0,084 ms/op
Iteration 28: 0,086 ms/op
Iteration 29: 0,086 ms/op
Iteration 30: 0,085 ms/op
Iteration 31: 0,086 ms/op
Iteration 32: 0,085 ms/op
Iteration 33: 0,084 ms/op
Iteration 34: 0,085 ms/op
Iteration 35: 0,085 ms/op
Iteration 36: 0,084 ms/op
Iteration 37: 0,084 ms/op
Iteration 38: 0,085 ms/op
Iteration 39: 0,085 ms/op
Iteration 40: 0,084 ms/op
Iteration 41: 0,085 ms/op
Iteration 42: 0,084 ms/op
Iteration 43: 0,088 ms/op
Iteration 44: 0,085 ms/op
Iteration 45: 0,084 ms/op
Iteration 46: 0,084 ms/op
Iteration 47: 0,083 ms/op
Iteration 48: 0,084 ms/op
Iteration 49: 0,084 ms/op
Iteration 50: 0,084 ms/op
Iteration 51: 0,085 ms/op
Iteration 52: 0,085 ms/op
Iteration 53: 0,091 ms/op
Iteration 54: 0,091 ms/op
Iteration 55: 0,093 ms/op
Iteration 56: 0,092 ms/op
Iteration 57: 0,088 ms/op
Iteration 58: 0,096 ms/op
Iteration 59: 0,096 ms/op
Iteration 60: 0,100 ms/op
Iteration 61: 0,090 ms/op
Iteration 62: 0,086 ms/op
Iteration 63: 0,085 ms/op
Iteration 64: 0,087 ms/op
Iteration 65: 0,089 ms/op
Iteration 66: 0,088 ms/op
Iteration 67: 0,087 ms/op
Iteration 68: 0,090 ms/op
Iteration 69: 0,088 ms/op
Iteration 70: 0,087 ms/op
Iteration 71: 0,087 ms/op
Iteration 72: 0,087 ms/op
Iteration 73: 0,086 ms/op
Iteration 74: 0,090 ms/op
Iteration 75: 0,088 ms/op
Iteration 76: 0,089 ms/op
Iteration 77: 0,088 ms/op
Iteration 78: 0,087 ms/op
Iteration 79: 0,089 ms/op
Iteration 80: 0,086 ms/op
Iteration 81: 0,086 ms/op
Iteration 82: 0,087 ms/op
Iteration 83: 0,087 ms/op
Iteration 84: 0,088 ms/op
Iteration 85: 0,088 ms/op
Iteration 86: 0,086 ms/op
Iteration 87: 0,087 ms/op
Iteration 88: 0,086 ms/op
Iteration 89: 0,085 ms/op
Iteration 90: 0,088 ms/op
Iteration 91: 0,088 ms/op
Iteration 92: 0,089 ms/op
Iteration 93: 0,092 ms/op
Iteration 94: 0,087 ms/op
Iteration 95: 0,088 ms/op
Iteration 96: 0,085 ms/op
Iteration 97: 0,085 ms/op
Iteration 98: 0,085 ms/op
Iteration 99: 0,085 ms/op
Iteration 100: 0,086 ms/op
Iteration 101: 0,086 ms/op
Iteration 102: 0,085 ms/op
Iteration 103: 0,087 ms/op
Iteration 104: 0,085 ms/op
Iteration 105: 0,089 ms/op
Iteration 106: 0,091 ms/op
Iteration 107: 0,092 ms/op
Iteration 108: 0,088 ms/op
Iteration 109: 0,093 ms/op
Iteration 110: 0,088 ms/op
Iteration 111: 0,088 ms/op
Iteration 112: 0,088 ms/op
Iteration 113: 0,085 ms/op
Iteration 114: 0,087 ms/op
Iteration 115: 0,086 ms/op
Iteration 116: 0,086 ms/op
Iteration 117: 0,085 ms/op
Iteration 118: 0,089 ms/op
Iteration 119: 0,099 ms/op
Iteration 120: 0,104 ms/op
Result "bench.GroovyBench.eachTest":
0,087 ±(99.9%) 0,001 ms/op [Average]
(min, avg, max) = (0,083, 0,087, 0,104), stdev = 0,004
CI (99.9%): [0,086, 0,088] (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: 16,67% complete, ETA 00:15:11
# Fork: 1 of 1
# Warmup Iteration 1: 0,086 ms/op
Iteration 1: 0,094 ms/op
Iteration 2: 0,094 ms/op
Iteration 3: 0,094 ms/op
Iteration 4: 0,094 ms/op
Iteration 5: 0,096 ms/op
Iteration 6: 0,088 ms/op
Iteration 7: 0,078 ms/op
Iteration 8: 0,078 ms/op
Iteration 9: 0,078 ms/op
Iteration 10: 0,078 ms/op
Iteration 11: 0,078 ms/op
Iteration 12: 0,079 ms/op
Iteration 13: 0,078 ms/op
Iteration 14: 0,078 ms/op
Iteration 15: 0,078 ms/op
Iteration 16: 0,078 ms/op
Iteration 17: 0,078 ms/op
Iteration 18: 0,078 ms/op
Iteration 19: 0,079 ms/op
Iteration 20: 0,080 ms/op
Iteration 21: 0,080 ms/op
Iteration 22: 0,077 ms/op
Iteration 23: 0,077 ms/op
Iteration 24: 0,078 ms/op
Iteration 25: 0,078 ms/op
Iteration 26: 0,079 ms/op
Iteration 27: 0,078 ms/op
Iteration 28: 0,078 ms/op
Iteration 29: 0,079 ms/op
Iteration 30: 0,078 ms/op
Iteration 31: 0,079 ms/op
Iteration 32: 0,078 ms/op
Iteration 33: 0,080 ms/op
Iteration 34: 0,077 ms/op
Iteration 35: 0,077 ms/op
Iteration 36: 0,078 ms/op
Iteration 37: 0,078 ms/op
Iteration 38: 0,077 ms/op
Iteration 39: 0,078 ms/op
Iteration 40: 0,078 ms/op
Iteration 41: 0,078 ms/op
Iteration 42: 0,078 ms/op
Iteration 43: 0,078 ms/op
Iteration 44: 0,078 ms/op
Iteration 45: 0,078 ms/op
Iteration 46: 0,078 ms/op
Iteration 47: 0,078 ms/op
Iteration 48: 0,079 ms/op
Iteration 49: 0,079 ms/op
Iteration 50: 0,079 ms/op
Iteration 51: 0,079 ms/op
Iteration 52: 0,078 ms/op
Iteration 53: 0,079 ms/op
Iteration 54: 0,078 ms/op
Iteration 55: 0,078 ms/op
Iteration 56: 0,078 ms/op
Iteration 57: 0,078 ms/op
Iteration 58: 0,078 ms/op
Iteration 59: 0,077 ms/op
Iteration 60: 0,078 ms/op
Iteration 61: 0,078 ms/op
Iteration 62: 0,078 ms/op
Iteration 63: 0,078 ms/op
Iteration 64: 0,078 ms/op
Iteration 65: 0,078 ms/op
Iteration 66: 0,078 ms/op
Iteration 67: 0,078 ms/op
Iteration 68: 0,078 ms/op
Iteration 69: 0,078 ms/op
Iteration 70: 0,078 ms/op
Iteration 71: 0,078 ms/op
Iteration 72: 0,081 ms/op
Iteration 73: 0,085 ms/op
Iteration 74: 0,082 ms/op
Iteration 75: 0,091 ms/op
Iteration 76: 0,077 ms/op
Iteration 77: 0,078 ms/op
Iteration 78: 0,077 ms/op
Iteration 79: 0,077 ms/op
Iteration 80: 0,077 ms/op
Iteration 81: 0,077 ms/op
Iteration 82: 0,078 ms/op
Iteration 83: 0,079 ms/op
Iteration 84: 0,079 ms/op
Iteration 85: 0,078 ms/op
Iteration 86: 0,078 ms/op
Iteration 87: 0,078 ms/op
Iteration 88: 0,077 ms/op
Iteration 89: 0,078 ms/op
Iteration 90: 0,078 ms/op
Iteration 91: 0,078 ms/op
Iteration 92: 0,079 ms/op
Iteration 93: 0,078 ms/op
Iteration 94: 0,077 ms/op
Iteration 95: 0,077 ms/op
Iteration 96: 0,077 ms/op
Iteration 97: 0,078 ms/op
Iteration 98: 0,078 ms/op
Iteration 99: 0,078 ms/op
Iteration 100: 0,079 ms/op
Iteration 101: 0,078 ms/op
Iteration 102: 0,077 ms/op
Iteration 103: 0,078 ms/op
Iteration 104: 0,077 ms/op
Iteration 105: 0,078 ms/op
Iteration 106: 0,078 ms/op
Iteration 107: 0,078 ms/op
Iteration 108: 0,077 ms/op
Iteration 109: 0,078 ms/op
Iteration 110: 0,079 ms/op
Iteration 111: 0,078 ms/op
Iteration 112: 0,078 ms/op
Iteration 113: 0,077 ms/op
Iteration 114: 0,077 ms/op
Iteration 115: 0,078 ms/op
Iteration 116: 0,078 ms/op
Iteration 117: 0,078 ms/op
Iteration 118: 0,079 ms/op
Iteration 119: 0,078 ms/op
Iteration 120: 0,079 ms/op
Result "bench.GroovyBench.forEachTest":
0,079 ±(99.9%) 0,001 ms/op [Average]
(min, avg, max) = (0,077, 0,079, 0,096), stdev = 0,004
CI (99.9%): [0,078, 0,080] (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: 33,33% complete, ETA 00:12:19
# Fork: 1 of 1
# Warmup Iteration 1: 0,147 ms/op
Iteration 1: 0,137 ms/op
Iteration 2: 0,136 ms/op
Iteration 3: 0,137 ms/op
Iteration 4: 0,139 ms/op
Iteration 5: 0,137 ms/op
Iteration 6: 0,138 ms/op
Iteration 7: 0,138 ms/op
Iteration 8: 0,138 ms/op
Iteration 9: 0,158 ms/op
Iteration 10: 0,158 ms/op
Iteration 11: 0,158 ms/op
Iteration 12: 0,159 ms/op
Iteration 13: 0,157 ms/op
Iteration 14: 0,158 ms/op
Iteration 15: 0,156 ms/op
Iteration 16: 0,158 ms/op
Iteration 17: 0,160 ms/op
Iteration 18: 0,157 ms/op
Iteration 19: 0,158 ms/op
Iteration 20: 0,159 ms/op
Iteration 21: 0,158 ms/op
Iteration 22: 0,158 ms/op
Iteration 23: 0,157 ms/op
Iteration 24: 0,158 ms/op
Iteration 25: 0,165 ms/op
Iteration 26: 0,160 ms/op
Iteration 27: 0,157 ms/op
Iteration 28: 0,156 ms/op
Iteration 29: 0,158 ms/op
Iteration 30: 0,157 ms/op
Iteration 31: 0,159 ms/op
Iteration 32: 0,157 ms/op
Iteration 33: 0,158 ms/op
Iteration 34: 0,159 ms/op
Iteration 35: 0,159 ms/op
Iteration 36: 0,160 ms/op
Iteration 37: 0,159 ms/op
Iteration 38: 0,158 ms/op
Iteration 39: 0,160 ms/op
Iteration 40: 0,158 ms/op
Iteration 41: 0,158 ms/op
Iteration 42: 0,158 ms/op
Iteration 43: 0,160 ms/op
Iteration 44: 0,155 ms/op
Iteration 45: 0,159 ms/op
Iteration 46: 0,159 ms/op
Iteration 47: 0,160 ms/op
Iteration 48: 0,158 ms/op
Iteration 49: 0,160 ms/op
Iteration 50: 0,158 ms/op
Iteration 51: 0,159 ms/op
Iteration 52: 0,159 ms/op
Iteration 53: 0,160 ms/op
Iteration 54: 0,158 ms/op
Iteration 55: 0,159 ms/op
Iteration 56: 0,160 ms/op
Iteration 57: 0,161 ms/op
Iteration 58: 0,160 ms/op
Iteration 59: 0,158 ms/op
Iteration 60: 0,157 ms/op
Iteration 61: 0,159 ms/op
Iteration 62: 0,158 ms/op
Iteration 63: 0,157 ms/op
Iteration 64: 0,157 ms/op
Iteration 65: 0,158 ms/op
Iteration 66: 0,160 ms/op
Iteration 67: 0,158 ms/op
Iteration 68: 0,157 ms/op
Iteration 69: 0,156 ms/op
Iteration 70: 0,158 ms/op
Iteration 71: 0,158 ms/op
Iteration 72: 0,157 ms/op
Iteration 73: 0,158 ms/op
Iteration 74: 0,159 ms/op
Iteration 75: 0,159 ms/op
Iteration 76: 0,159 ms/op
Iteration 77: 0,157 ms/op
Iteration 78: 0,157 ms/op
Iteration 79: 0,159 ms/op
Iteration 80: 0,158 ms/op
Iteration 81: 0,160 ms/op
Iteration 82: 0,160 ms/op
Iteration 83: 0,158 ms/op
Iteration 84: 0,160 ms/op
Iteration 85: 0,162 ms/op
Iteration 86: 0,156 ms/op
Iteration 87: 0,157 ms/op
Iteration 88: 0,158 ms/op
Iteration 89: 0,158 ms/op
Iteration 90: 0,160 ms/op
Iteration 91: 0,160 ms/op
Iteration 92: 0,159 ms/op
Iteration 93: 0,159 ms/op
Iteration 94: 0,158 ms/op
Iteration 95: 0,160 ms/op
Iteration 96: 0,161 ms/op
Iteration 97: 0,157 ms/op
Iteration 98: 0,157 ms/op
Iteration 99: 0,159 ms/op
Iteration 100: 0,158 ms/op
Iteration 101: 0,158 ms/op
Iteration 102: 0,159 ms/op
Iteration 103: 0,163 ms/op
Iteration 104: 0,183 ms/op
Iteration 105: 0,158 ms/op
Iteration 106: 0,159 ms/op
Iteration 107: 0,161 ms/op
Iteration 108: 0,157 ms/op
Iteration 109: 0,160 ms/op
Iteration 110: 0,157 ms/op
Iteration 111: 0,157 ms/op
Iteration 112: 0,159 ms/op
Iteration 113: 0,159 ms/op
Iteration 114: 0,158 ms/op
Iteration 115: 0,158 ms/op
Iteration 116: 0,158 ms/op
Iteration 117: 0,157 ms/op
Iteration 118: 0,157 ms/op
Iteration 119: 0,157 ms/op
Iteration 120: 0,157 ms/op
Result "bench.GroovyBench.forLoopTest":
0,157 ±(99.9%) 0,002 ms/op [Average]
(min, avg, max) = (0,136, 0,157, 0,183), stdev = 0,006
CI (99.9%): [0,155, 0,159] (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: 50,00% complete, ETA 00:09:11
# Fork: 1 of 1
# Warmup Iteration 1: 0,087 ms/op
Iteration 1: 0,101 ms/op
Iteration 2: 0,102 ms/op
Iteration 3: 0,102 ms/op
Iteration 4: 0,101 ms/op
Iteration 5: 0,100 ms/op
Iteration 6: 0,098 ms/op
Iteration 7: 0,078 ms/op
Iteration 8: 0,079 ms/op
Iteration 9: 0,078 ms/op
Iteration 10: 0,077 ms/op
Iteration 11: 0,078 ms/op
Iteration 12: 0,078 ms/op
Iteration 13: 0,078 ms/op
Iteration 14: 0,078 ms/op
Iteration 15: 0,079 ms/op
Iteration 16: 0,077 ms/op
Iteration 17: 0,078 ms/op
Iteration 18: 0,077 ms/op
Iteration 19: 0,078 ms/op
Iteration 20: 0,077 ms/op
Iteration 21: 0,078 ms/op
Iteration 22: 0,078 ms/op
Iteration 23: 0,078 ms/op
Iteration 24: 0,078 ms/op
Iteration 25: 0,077 ms/op
Iteration 26: 0,077 ms/op
Iteration 27: 0,078 ms/op
Iteration 28: 0,077 ms/op
Iteration 29: 0,078 ms/op
Iteration 30: 0,078 ms/op
Iteration 31: 0,079 ms/op
Iteration 32: 0,078 ms/op
Iteration 33: 0,078 ms/op
Iteration 34: 0,078 ms/op
Iteration 35: 0,078 ms/op
Iteration 36: 0,078 ms/op
Iteration 37: 0,078 ms/op
Iteration 38: 0,077 ms/op
Iteration 39: 0,078 ms/op
Iteration 40: 0,078 ms/op
Iteration 41: 0,078 ms/op
Iteration 42: 0,078 ms/op
Iteration 43: 0,078 ms/op
Iteration 44: 0,078 ms/op
Iteration 45: 0,077 ms/op
Iteration 46: 0,078 ms/op
Iteration 47: 0,078 ms/op
Iteration 48: 0,078 ms/op
Iteration 49: 0,079 ms/op
Iteration 50: 0,078 ms/op
Iteration 51: 0,077 ms/op
Iteration 52: 0,078 ms/op
Iteration 53: 0,077 ms/op
Iteration 54: 0,077 ms/op
Iteration 55: 0,078 ms/op
Iteration 56: 0,078 ms/op
Iteration 57: 0,078 ms/op
Iteration 58: 0,078 ms/op
Iteration 59: 0,079 ms/op
Iteration 60: 0,077 ms/op
Iteration 61: 0,078 ms/op
Iteration 62: 0,079 ms/op
Iteration 63: 0,078 ms/op
Iteration 64: 0,077 ms/op
Iteration 65: 0,078 ms/op
Iteration 66: 0,079 ms/op
Iteration 67: 0,078 ms/op
Iteration 68: 0,077 ms/op
Iteration 69: 0,078 ms/op
Iteration 70: 0,078 ms/op
Iteration 71: 0,079 ms/op
Iteration 72: 0,078 ms/op
Iteration 73: 0,078 ms/op
Iteration 74: 0,078 ms/op
Iteration 75: 0,078 ms/op
Iteration 76: 0,078 ms/op
Iteration 77: 0,078 ms/op
Iteration 78: 0,078 ms/op
Iteration 79: 0,078 ms/op
Iteration 80: 0,078 ms/op
Iteration 81: 0,078 ms/op
Iteration 82: 0,078 ms/op
Iteration 83: 0,078 ms/op
Iteration 84: 0,079 ms/op
Iteration 85: 0,078 ms/op
Iteration 86: 0,078 ms/op
Iteration 87: 0,079 ms/op
Iteration 88: 0,079 ms/op
Iteration 89: 0,078 ms/op
Iteration 90: 0,077 ms/op
Iteration 91: 0,078 ms/op
Iteration 92: 0,079 ms/op
Iteration 93: 0,079 ms/op
Iteration 94: 0,078 ms/op
Iteration 95: 0,078 ms/op
Iteration 96: 0,078 ms/op
Iteration 97: 0,078 ms/op
Iteration 98: 0,078 ms/op
Iteration 99: 0,078 ms/op
Iteration 100: 0,078 ms/op
Iteration 101: 0,078 ms/op
Iteration 102: 0,077 ms/op
Iteration 103: 0,078 ms/op
Iteration 104: 0,078 ms/op
Iteration 105: 0,078 ms/op
Iteration 106: 0,079 ms/op
Iteration 107: 0,079 ms/op
Iteration 108: 0,079 ms/op
Iteration 109: 0,078 ms/op
Iteration 110: 0,078 ms/op
Iteration 111: 0,079 ms/op
Iteration 112: 0,078 ms/op
Iteration 113: 0,078 ms/op
Iteration 114: 0,078 ms/op
Iteration 115: 0,079 ms/op
Iteration 116: 0,078 ms/op
Iteration 117: 0,078 ms/op
Iteration 118: 0,077 ms/op
Iteration 119: 0,077 ms/op
Iteration 120: 0,079 ms/op
Result "bench.GroovyBench.iteratorTest":
0,079 ±(99.9%) 0,002 ms/op [Average]
(min, avg, max) = (0,077, 0,079, 0,102), stdev = 0,005
CI (99.9%): [0,078, 0,081] (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: 66,67% complete, ETA 00:06:06
# Fork: 1 of 1
# Warmup Iteration 1: 0,086 ms/op
Iteration 1: 0,084 ms/op
Iteration 2: 0,084 ms/op
Iteration 3: 0,084 ms/op
Iteration 4: 0,083 ms/op
Iteration 5: 0,087 ms/op
Iteration 6: 0,084 ms/op
Iteration 7: 0,085 ms/op
Iteration 8: 0,085 ms/op
Iteration 9: 0,084 ms/op
Iteration 10: 0,085 ms/op
Iteration 11: 0,084 ms/op
Iteration 12: 0,085 ms/op
Iteration 13: 0,085 ms/op
Iteration 14: 0,084 ms/op
Iteration 15: 0,085 ms/op
Iteration 16: 0,085 ms/op
Iteration 17: 0,084 ms/op
Iteration 18: 0,084 ms/op
Iteration 19: 0,087 ms/op
Iteration 20: 0,084 ms/op
Iteration 21: 0,085 ms/op
Iteration 22: 0,085 ms/op
Iteration 23: 0,084 ms/op
Iteration 24: 0,086 ms/op
Iteration 25: 0,085 ms/op
Iteration 26: 0,085 ms/op
Iteration 27: 0,084 ms/op
Iteration 28: 0,084 ms/op
Iteration 29: 0,085 ms/op
Iteration 30: 0,085 ms/op
Iteration 31: 0,085 ms/op
Iteration 32: 0,085 ms/op
Iteration 33: 0,085 ms/op
Iteration 34: 0,084 ms/op
Iteration 35: 0,084 ms/op
Iteration 36: 0,084 ms/op
Iteration 37: 0,084 ms/op
Iteration 38: 0,084 ms/op
Iteration 39: 0,085 ms/op
Iteration 40: 0,085 ms/op
Iteration 41: 0,085 ms/op
Iteration 42: 0,084 ms/op
Iteration 43: 0,084 ms/op
Iteration 44: 0,084 ms/op
Iteration 45: 0,085 ms/op
Iteration 46: 0,085 ms/op
Iteration 47: 0,084 ms/op
Iteration 48: 0,085 ms/op
Iteration 49: 0,085 ms/op
Iteration 50: 0,085 ms/op
Iteration 51: 0,085 ms/op
Iteration 52: 0,085 ms/op
Iteration 53: 0,084 ms/op
Iteration 54: 0,083 ms/op
Iteration 55: 0,085 ms/op
Iteration 56: 0,084 ms/op
Iteration 57: 0,085 ms/op
Iteration 58: 0,085 ms/op
Iteration 59: 0,084 ms/op
Iteration 60: 0,085 ms/op
Iteration 61: 0,085 ms/op
Iteration 62: 0,084 ms/op
Iteration 63: 0,084 ms/op
Iteration 64: 0,085 ms/op
Iteration 65: 0,085 ms/op
Iteration 66: 0,084 ms/op
Iteration 67: 0,086 ms/op
Iteration 68: 0,084 ms/op
Iteration 69: 0,085 ms/op
Iteration 70: 0,084 ms/op
Iteration 71: 0,084 ms/op
Iteration 72: 0,084 ms/op
Iteration 73: 0,085 ms/op
Iteration 74: 0,085 ms/op
Iteration 75: 0,085 ms/op
Iteration 76: 0,085 ms/op
Iteration 77: 0,085 ms/op
Iteration 78: 0,085 ms/op
Iteration 79: 0,085 ms/op
Iteration 80: 0,085 ms/op
Iteration 81: 0,085 ms/op
Iteration 82: 0,084 ms/op
Iteration 83: 0,084 ms/op
Iteration 84: 0,084 ms/op
Iteration 85: 0,085 ms/op
Iteration 86: 0,085 ms/op
Iteration 87: 0,085 ms/op
Iteration 88: 0,084 ms/op
Iteration 89: 0,086 ms/op
Iteration 90: 0,084 ms/op
Iteration 91: 0,085 ms/op
Iteration 92: 0,086 ms/op
Iteration 93: 0,085 ms/op
Iteration 94: 0,085 ms/op
Iteration 95: 0,085 ms/op
Iteration 96: 0,084 ms/op
Iteration 97: 0,085 ms/op
Iteration 98: 0,084 ms/op
Iteration 99: 0,084 ms/op
Iteration 100: 0,085 ms/op
Iteration 101: 0,084 ms/op
Iteration 102: 0,085 ms/op
Iteration 103: 0,085 ms/op
Iteration 104: 0,085 ms/op
Iteration 105: 0,086 ms/op
Iteration 106: 0,084 ms/op
Iteration 107: 0,085 ms/op
Iteration 108: 0,085 ms/op
Iteration 109: 0,084 ms/op
Iteration 110: 0,085 ms/op
Iteration 111: 0,085 ms/op
Iteration 112: 0,084 ms/op
Iteration 113: 0,084 ms/op
Iteration 114: 0,084 ms/op
Iteration 115: 0,085 ms/op
Iteration 116: 0,085 ms/op
Iteration 117: 0,085 ms/op
Iteration 118: 0,084 ms/op
Iteration 119: 0,085 ms/op
Iteration 120: 0,085 ms/op
Result "bench.GroovyBench.java8ForEachWithAnonymousClassTest":
0,085 ±(99.9%) 0,001 ms/op [Average]
(min, avg, max) = (0,083, 0,085, 0,087), stdev = 0,001
CI (99.9%): [0,084, 0,085] (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: 83,33% complete, ETA 00:03:03
# Fork: 1 of 1
# Warmup Iteration 1: 0,407 ms/op
Iteration 1: 0,408 ms/op
Iteration 2: 0,405 ms/op
Iteration 3: 0,408 ms/op
Iteration 4: 0,408 ms/op
Iteration 5: 0,413 ms/op
Iteration 6: 0,411 ms/op
Iteration 7: 0,413 ms/op
Iteration 8: 0,412 ms/op
Iteration 9: 0,412 ms/op
Iteration 10: 0,409 ms/op
Iteration 11: 0,416 ms/op
Iteration 12: 0,404 ms/op
Iteration 13: 0,405 ms/op
Iteration 14: 0,403 ms/op
Iteration 15: 0,410 ms/op
Iteration 16: 0,413 ms/op
Iteration 17: 0,405 ms/op
Iteration 18: 0,410 ms/op
Iteration 19: 0,412 ms/op
Iteration 20: 0,409 ms/op
Iteration 21: 0,413 ms/op
Iteration 22: 0,409 ms/op
Iteration 23: 0,416 ms/op
Iteration 24: 0,432 ms/op
Iteration 25: 0,399 ms/op
Iteration 26: 0,396 ms/op
Iteration 27: 0,398 ms/op
Iteration 28: 0,401 ms/op
Iteration 29: 0,397 ms/op
Iteration 30: 0,400 ms/op
Iteration 31: 0,396 ms/op
Iteration 32: 0,426 ms/op
Iteration 33: 0,420 ms/op
Iteration 34: 0,396 ms/op
Iteration 35: 0,401 ms/op
Iteration 36: 0,398 ms/op
Iteration 37: 0,395 ms/op
Iteration 38: 0,398 ms/op
Iteration 39: 0,402 ms/op
Iteration 40: 0,397 ms/op
Iteration 41: 0,399 ms/op
Iteration 42: 0,398 ms/op
Iteration 43: 0,399 ms/op
Iteration 44: 0,401 ms/op
Iteration 45: 0,396 ms/op
Iteration 46: 0,396 ms/op
Iteration 47: 0,398 ms/op
Iteration 48: 0,396 ms/op
Iteration 49: 0,404 ms/op
Iteration 50: 0,398 ms/op
Iteration 51: 0,398 ms/op
Iteration 52: 0,396 ms/op
Iteration 53: 0,398 ms/op
Iteration 54: 0,401 ms/op
Iteration 55: 0,399 ms/op
Iteration 56: 0,396 ms/op
Iteration 57: 0,400 ms/op
Iteration 58: 0,395 ms/op
Iteration 59: 0,415 ms/op
Iteration 60: 0,392 ms/op
Iteration 61: 0,391 ms/op
Iteration 62: 0,392 ms/op
Iteration 63: 0,393 ms/op
Iteration 64: 0,396 ms/op
Iteration 65: 0,394 ms/op
Iteration 66: 0,391 ms/op
Iteration 67: 0,396 ms/op
Iteration 68: 0,397 ms/op
Iteration 69: 0,399 ms/op
Iteration 70: 0,401 ms/op
Iteration 71: 0,396 ms/op
Iteration 72: 0,396 ms/op
Iteration 73: 0,399 ms/op
Iteration 74: 0,400 ms/op
Iteration 75: 0,396 ms/op
Iteration 76: 0,396 ms/op
Iteration 77: 0,398 ms/op
Iteration 78: 0,400 ms/op
Iteration 79: 0,404 ms/op
Iteration 80: 0,412 ms/op
Iteration 81: 0,401 ms/op
Iteration 82: 0,399 ms/op
Iteration 83: 0,403 ms/op
Iteration 84: 0,396 ms/op
Iteration 85: 0,397 ms/op
Iteration 86: 0,399 ms/op
Iteration 87: 0,397 ms/op
Iteration 88: 0,399 ms/op
Iteration 89: 0,402 ms/op
Iteration 90: 0,401 ms/op
Iteration 91: 0,400 ms/op
Iteration 92: 0,401 ms/op
Iteration 93: 0,402 ms/op
Iteration 94: 0,402 ms/op
Iteration 95: 0,398 ms/op
Iteration 96: 0,400 ms/op
Iteration 97: 0,401 ms/op
Iteration 98: 0,400 ms/op
Iteration 99: 0,397 ms/op
Iteration 100: 0,397 ms/op
Iteration 101: 0,399 ms/op
Iteration 102: 0,402 ms/op
Iteration 103: 0,398 ms/op
Iteration 104: 0,403 ms/op
Iteration 105: 0,402 ms/op
Iteration 106: 0,397 ms/op
Iteration 107: 0,398 ms/op
Iteration 108: 0,408 ms/op
Iteration 109: 0,399 ms/op
Iteration 110: 0,396 ms/op
Iteration 111: 0,403 ms/op
Iteration 112: 0,401 ms/op
Iteration 113: 0,402 ms/op
Iteration 114: 0,397 ms/op
Iteration 115: 0,411 ms/op
Iteration 116: 0,401 ms/op
Iteration 117: 0,401 ms/op
Iteration 118: 0,400 ms/op
Iteration 119: 0,398 ms/op
Iteration 120: 0,397 ms/op
Result "bench.GroovyBench.java8ForEachWithClosureTest":
0,402 ±(99.9%) 0,002 ms/op [Average]
(min, avg, max) = (0,391, 0,402, 0,432), stdev = 0,007
CI (99.9%): [0,400, 0,404] (assumes normal distribution)
# Run complete. Total time: 00:18:17
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 0,087 ± 0,001 ms/op
GroovyBench.forEachTest avgt 120 0,079 ± 0,001 ms/op
GroovyBench.forLoopTest avgt 120 0,157 ± 0,002 ms/op
GroovyBench.iteratorTest avgt 120 0,079 ± 0,002 ms/op
GroovyBench.java8ForEachWithAnonymousClassTest avgt 120 0,085 ± 0,001 ms/op
GroovyBench.java8ForEachWithClosureTest avgt 120 0,402 ± 0,002 ms/op
Benchmark result is saved to /home/wololock/workspace/groovy-jmh/build/reports/jmh/results.txt
BUILD SUCCESSFUL in 18m 21s
5 actionable tasks: 5 executed
19:07:59: Task execution finished 'jmh'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment