Хабрахабр

Разбор перформансных задач с JBreak (Часть 1)

# JMH version: 1.20
# VM version: JDK 1.8.0_161, VM 25.161-b12
# VM invoker: C:\Program Files\Java\jre1.8.0_161\bin\java.exe
# VM options: <none>
# Warmup: 5 iterations, 2000 ms each
# Measurement: 10 iterations, 2000 ms each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Average time, time/op
# Benchmark: ru.gnkoshelev.jbreak2018.perf_tests.for_each.ArrayListVsStreamBenchmark.forEachListBenchmark
# Parameters: (N = 1) # Run progress: 0,00% complete, ETA 00:05:00
# Fork: 1 of 1
# Warmup Iteration 1: 0,288 us/op
# Warmup Iteration 2: 0,277 us/op
# Warmup Iteration 3: 0,178 us/op
# Warmup Iteration 4: 0,177 us/op
# Warmup Iteration 5: 0,178 us/op
Iteration 1: 0,177 us/op
Iteration 2: 0,178 us/op
Iteration 3: 0,178 us/op
Iteration 4: 0,178 us/op
Iteration 5: 0,178 us/op
Iteration 6: 0,178 us/op
Iteration 7: 0,178 us/op
Iteration 8: 0,179 us/op
Iteration 9: 0,178 us/op
Iteration 10: 0,180 us/op Result "ru.gnkoshelev.jbreak2018.perf_tests.for_each.ArrayListVsStreamBenchmark.forEachListBenchmark": 0,178 ±(99.9%) 0,001 us/op [Average] (min, avg, max) = (0,177, 0,178, 0,180), stdev = 0,001 CI (99.9%): [0,177, 0,179] (assumes normal distribution) # JMH version: 1.20
# VM version: JDK 1.8.0_161, VM 25.161-b12
# VM invoker: C:\Program Files\Java\jre1.8.0_161\bin\java.exe
# VM options: <none>
# Warmup: 5 iterations, 2000 ms each
# Measurement: 10 iterations, 2000 ms each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Average time, time/op
# Benchmark: ru.gnkoshelev.jbreak2018.perf_tests.for_each.ArrayListVsStreamBenchmark.forEachListBenchmark
# Parameters: (N = 10) # Run progress: 10,00% complete, ETA 00:04:33
# Fork: 1 of 1
# Warmup Iteration 1: 2,933 us/op
# Warmup Iteration 2: 2,839 us/op
# Warmup Iteration 3: 1,661 us/op
# Warmup Iteration 4: 1,675 us/op
# Warmup Iteration 5: 1,674 us/op
Iteration 1: 1,682 us/op
Iteration 2: 1,653 us/op
Iteration 3: 1,658 us/op
Iteration 4: 1,656 us/op
Iteration 5: 1,659 us/op
Iteration 6: 1,655 us/op
Iteration 7: 1,656 us/op
Iteration 8: 1,657 us/op
Iteration 9: 1,661 us/op
Iteration 10: 1,660 us/op Result "ru.gnkoshelev.jbreak2018.perf_tests.for_each.ArrayListVsStreamBenchmark.forEachListBenchmark": 1,660 ±(99.9%) 0,013 us/op [Average] (min, avg, max) = (1,653, 1,660, 1,682), stdev = 0,008 CI (99.9%): [1,647, 1,672] (assumes normal distribution) # JMH version: 1.20
# VM version: JDK 1.8.0_161, VM 25.161-b12
# VM invoker: C:\Program Files\Java\jre1.8.0_161\bin\java.exe
# VM options: <none>
# Warmup: 5 iterations, 2000 ms each
# Measurement: 10 iterations, 2000 ms each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Average time, time/op
# Benchmark: ru.gnkoshelev.jbreak2018.perf_tests.for_each.ArrayListVsStreamBenchmark.forEachListBenchmark
# Parameters: (N = 100) # Run progress: 20,00% complete, ETA 00:04:02
# Fork: 1 of 1
# Warmup Iteration 1: 27,633 us/op
# Warmup Iteration 2: 27,184 us/op
# Warmup Iteration 3: 15,046 us/op
# Warmup Iteration 4: 15,064 us/op
# Warmup Iteration 5: 15,060 us/op
Iteration 1: 15,039 us/op
Iteration 2: 15,057 us/op
Iteration 3: 15,065 us/op
Iteration 4: 15,062 us/op
Iteration 5: 15,086 us/op
Iteration 6: 15,060 us/op
Iteration 7: 15,110 us/op
Iteration 8: 15,070 us/op
Iteration 9: 15,111 us/op
Iteration 10: 15,079 us/op Result "ru.gnkoshelev.jbreak2018.perf_tests.for_each.ArrayListVsStreamBenchmark.forEachListBenchmark": 15,074 ±(99.9%) 0,035 us/op [Average] (min, avg, max) = (15,039, 15,074, 15,111), stdev = 0,023 CI (99.9%): [15,039, 15,109] (assumes normal distribution) # JMH version: 1.20
# VM version: JDK 1.8.0_161, VM 25.161-b12
# VM invoker: C:\Program Files\Java\jre1.8.0_161\bin\java.exe
# VM options: <none>
# Warmup: 5 iterations, 2000 ms each
# Measurement: 10 iterations, 2000 ms each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Average time, time/op
# Benchmark: ru.gnkoshelev.jbreak2018.perf_tests.for_each.ArrayListVsStreamBenchmark.forEachListBenchmark
# Parameters: (N = 1000) # Run progress: 30,00% complete, ETA 00:03:32
# Fork: 1 of 1
# Warmup Iteration 1: 291,532 us/op
# Warmup Iteration 2: 267,136 us/op
# Warmup Iteration 3: 170,432 us/op
# Warmup Iteration 4: 170,388 us/op
# Warmup Iteration 5: 169,797 us/op
Iteration 1: 170,036 us/op
Iteration 2: 176,614 us/op
Iteration 3: 176,396 us/op
Iteration 4: 175,895 us/op
Iteration 5: 176,984 us/op
Iteration 6: 172,085 us/op
Iteration 7: 170,193 us/op
Iteration 8: 171,333 us/op
Iteration 9: 170,293 us/op
Iteration 10: 171,006 us/op Result "ru.gnkoshelev.jbreak2018.perf_tests.for_each.ArrayListVsStreamBenchmark.forEachListBenchmark": 173,084 ±(99.9%) 4,518 us/op [Average] (min, avg, max) = (170,036, 173,084, 176,984), stdev = 2,988 CI (99.9%): [168,566, 177,601] (assumes normal distribution) # JMH version: 1.20
# VM version: JDK 1.8.0_161, VM 25.161-b12
# VM invoker: C:\Program Files\Java\jre1.8.0_161\bin\java.exe
# VM options: <none>
# Warmup: 5 iterations, 2000 ms each
# Measurement: 10 iterations, 2000 ms each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Average time, time/op
# Benchmark: ru.gnkoshelev.jbreak2018.perf_tests.for_each.ArrayListVsStreamBenchmark.forEachListBenchmark
# Parameters: (N = 10000) # Run progress: 40,00% complete, ETA 00:03:01
# Fork: 1 of 1
# Warmup Iteration 1: 2890,241 us/op
# Warmup Iteration 2: 2784,740 us/op
# Warmup Iteration 3: 1725,390 us/op
# Warmup Iteration 4: 1726,138 us/op
# Warmup Iteration 5: 1733,212 us/op
Iteration 1: 1726,084 us/op
Iteration 2: 1712,973 us/op
Iteration 3: 1715,916 us/op
Iteration 4: 1750,530 us/op
Iteration 5: 1721,900 us/op
Iteration 6: 1711,158 us/op
Iteration 7: 1709,659 us/op
Iteration 8: 1726,751 us/op
Iteration 9: 1737,237 us/op
Iteration 10: 1734,220 us/op Result "ru.gnkoshelev.jbreak2018.perf_tests.for_each.ArrayListVsStreamBenchmark.forEachListBenchmark": 1724,643 ±(99.9%) 19,861 us/op [Average] (min, avg, max) = (1709,659, 1724,643, 1750,530), stdev = 13,137 CI (99.9%): [1704,782, 1744,504] (assumes normal distribution) # JMH version: 1.20
# VM version: JDK 1.8.0_161, VM 25.161-b12
# VM invoker: C:\Program Files\Java\jre1.8.0_161\bin\java.exe
# VM options: <none>
# Warmup: 5 iterations, 2000 ms each
# Measurement: 10 iterations, 2000 ms each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Average time, time/op
# Benchmark: ru.gnkoshelev.jbreak2018.perf_tests.for_each.ArrayListVsStreamBenchmark.forEachStreamBenchmark
# Parameters: (N = 1) # Run progress: 50,00% complete, ETA 00:02:31
# Fork: 1 of 1
# Warmup Iteration 1: 0,301 us/op
# Warmup Iteration 2: 0,289 us/op
# Warmup Iteration 3: 0,181 us/op
# Warmup Iteration 4: 0,180 us/op
# Warmup Iteration 5: 0,181 us/op
Iteration 1: 0,179 us/op
Iteration 2: 0,178 us/op
Iteration 3: 0,179 us/op
Iteration 4: 0,180 us/op
Iteration 5: 0,179 us/op
Iteration 6: 0,179 us/op
Iteration 7: 0,180 us/op
Iteration 8: 0,179 us/op
Iteration 9: 0,180 us/op
Iteration 10: 0,180 us/op Result "ru.gnkoshelev.jbreak2018.perf_tests.for_each.ArrayListVsStreamBenchmark.forEachStreamBenchmark": 0,179 ±(99.9%) 0,001 us/op [Average] (min, avg, max) = (0,178, 0,179, 0,180), stdev = 0,001 CI (99.9%): [0,178, 0,180] (assumes normal distribution) # JMH version: 1.20
# VM version: JDK 1.8.0_161, VM 25.161-b12
# VM invoker: C:\Program Files\Java\jre1.8.0_161\bin\java.exe
# VM options: <none>
# Warmup: 5 iterations, 2000 ms each
# Measurement: 10 iterations, 2000 ms each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Average time, time/op
# Benchmark: ru.gnkoshelev.jbreak2018.perf_tests.for_each.ArrayListVsStreamBenchmark.forEachStreamBenchmark
# Parameters: (N = 10) # Run progress: 60,00% complete, ETA 00:02:01
# Fork: 1 of 1
# Warmup Iteration 1: 2,660 us/op
# Warmup Iteration 2: 2,551 us/op
# Warmup Iteration 3: 1,558 us/op
# Warmup Iteration 4: 1,563 us/op
# Warmup Iteration 5: 1,563 us/op
Iteration 1: 1,557 us/op
Iteration 2: 1,553 us/op
Iteration 3: 1,567 us/op
Iteration 4: 1,555 us/op
Iteration 5: 1,569 us/op
Iteration 6: 1,570 us/op
Iteration 7: 1,562 us/op
Iteration 8: 1,561 us/op
Iteration 9: 1,564 us/op
Iteration 10: 1,580 us/op Result "ru.gnkoshelev.jbreak2018.perf_tests.for_each.ArrayListVsStreamBenchmark.forEachStreamBenchmark": 1,564 ±(99.9%) 0,012 us/op [Average] (min, avg, max) = (1,553, 1,564, 1,580), stdev = 0,008 CI (99.9%): [1,552, 1,576] (assumes normal distribution) # JMH version: 1.20
# VM version: JDK 1.8.0_161, VM 25.161-b12
# VM invoker: C:\Program Files\Java\jre1.8.0_161\bin\java.exe
# VM options: <none>
# Warmup: 5 iterations, 2000 ms each
# Measurement: 10 iterations, 2000 ms each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Average time, time/op
# Benchmark: ru.gnkoshelev.jbreak2018.perf_tests.for_each.ArrayListVsStreamBenchmark.forEachStreamBenchmark
# Parameters: (N = 100) # Run progress: 70,00% complete, ETA 00:01:30
# Fork: 1 of 1
# Warmup Iteration 1: 27,754 us/op
# Warmup Iteration 2: 26,859 us/op
# Warmup Iteration 3: 16,456 us/op
# Warmup Iteration 4: 16,548 us/op
# Warmup Iteration 5: 16,432 us/op
Iteration 1: 16,399 us/op
Iteration 2: 16,480 us/op
Iteration 3: 16,517 us/op
Iteration 4: 16,458 us/op
Iteration 5: 16,395 us/op
Iteration 6: 16,471 us/op
Iteration 7: 16,595 us/op
Iteration 8: 16,585 us/op
Iteration 9: 16,460 us/op
Iteration 10: 16,435 us/op Result "ru.gnkoshelev.jbreak2018.perf_tests.for_each.ArrayListVsStreamBenchmark.forEachStreamBenchmark": 16,479 ±(99.9%) 0,104 us/op [Average] (min, avg, max) = (16,395, 16,479, 16,595), stdev = 0,069 CI (99.9%): [16,376, 16,583] (assumes normal distribution) # JMH version: 1.20
# VM version: JDK 1.8.0_161, VM 25.161-b12
# VM invoker: C:\Program Files\Java\jre1.8.0_161\bin\java.exe
# VM options: <none>
# Warmup: 5 iterations, 2000 ms each
# Measurement: 10 iterations, 2000 ms each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Average time, time/op
# Benchmark: ru.gnkoshelev.jbreak2018.perf_tests.for_each.ArrayListVsStreamBenchmark.forEachStreamBenchmark
# Parameters: (N = 1000) # Run progress: 80,00% complete, ETA 00:01:00
# Fork: 1 of 1
# Warmup Iteration 1: 291,695 us/op
# Warmup Iteration 2: 282,896 us/op
# Warmup Iteration 3: 185,443 us/op
# Warmup Iteration 4: 187,851 us/op
# Warmup Iteration 5: 184,393 us/op
Iteration 1: 184,584 us/op
Iteration 2: 185,349 us/op
Iteration 3: 184,803 us/op
Iteration 4: 184,394 us/op
Iteration 5: 185,371 us/op
Iteration 6: 186,735 us/op
Iteration 7: 185,945 us/op
Iteration 8: 188,592 us/op
Iteration 9: 186,581 us/op
Iteration 10: 187,908 us/op Result "ru.gnkoshelev.jbreak2018.perf_tests.for_each.ArrayListVsStreamBenchmark.forEachStreamBenchmark": 186,026 ±(99.9%) 2,142 us/op [Average] (min, avg, max) = (184,394, 186,026, 188,592), stdev = 1,417 CI (99.9%): [183,884, 188,168] (assumes normal distribution) # JMH version: 1.20
# VM version: JDK 1.8.0_161, VM 25.161-b12
# VM invoker: C:\Program Files\Java\jre1.8.0_161\bin\java.exe
# VM options: <none>
# Warmup: 5 iterations, 2000 ms each
# Measurement: 10 iterations, 2000 ms each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Average time, time/op
# Benchmark: ru.gnkoshelev.jbreak2018.perf_tests.for_each.ArrayListVsStreamBenchmark.forEachStreamBenchmark
# Parameters: (N = 10000) # Run progress: 90,00% complete, ETA 00:00:30
# Fork: 1 of 1
# Warmup Iteration 1: 2896,624 us/op
# Warmup Iteration 2: 2816,471 us/op
# Warmup Iteration 3: 1732,597 us/op
# Warmup Iteration 4: 1798,371 us/op
# Warmup Iteration 5: 1758,489 us/op
Iteration 1: 1615,213 us/op
Iteration 2: 1518,388 us/op
Iteration 3: 1513,955 us/op
Iteration 4: 1520,570 us/op
Iteration 5: 1525,072 us/op
Iteration 6: 1527,055 us/op
Iteration 7: 1547,707 us/op
Iteration 8: 1532,163 us/op
Iteration 9: 1519,474 us/op
Iteration 10: 1529,969 us/op Result "ru.gnkoshelev.jbreak2018.perf_tests.for_each.ArrayListVsStreamBenchmark.forEachStreamBenchmark": 1534,957 ±(99.9%) 44,959 us/op [Average] (min, avg, max) = (1513,955, 1534,957, 1615,213), stdev = 29,737 CI (99.9%): [1489,998, 1579,915] (assumes normal distribution) # Run complete. Total time: 00:05:03 Benchmark (N) Mode Cnt Score Error Units
ArrayListVsStreamBenchmark.forEachListBenchmark 1 avgt 10 0,178 ± 0,001 us/op
ArrayListVsStreamBenchmark.forEachListBenchmark 10 avgt 10 1,660 ± 0,013 us/op
ArrayListVsStreamBenchmark.forEachListBenchmark 100 avgt 10 15,074 ± 0,035 us/op
ArrayListVsStreamBenchmark.forEachListBenchmark 1000 avgt 10 173,084 ± 4,518 us/op
ArrayListVsStreamBenchmark.forEachListBenchmark 10000 avgt 10 1724,643 ± 19,861 us/op
ArrayListVsStreamBenchmark.forEachStreamBenchmark 1 avgt 10 0,179 ± 0,001 us/op
ArrayListVsStreamBenchmark.forEachStreamBenchmark 10 avgt 10 1,564 ± 0,012 us/op
ArrayListVsStreamBenchmark.forEachStreamBenchmark 100 avgt 10 16,479 ± 0,104 us/op
ArrayListVsStreamBenchmark.forEachStreamBenchmark 1000 avgt 10 186,026 ± 2,142 us/op
ArrayListVsStreamBenchmark.forEachStreamBenchmark 10000 avgt 10 1534,957 ± 44,959 us/op

Теги
Показать больше

Похожие статьи

Кнопка «Наверх»
Закрыть