1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
| ❯ ./gradlew benchmark -PbenchmarkTarget=".*AccountsFinderPerformanceBenchmark"
> Task :mainBenchmark
Running 'main' benchmarks for 'main'
… me.bossm0n5t3r.chapter05.benchmarks.AccountsFinderPerformanceBenchmark.baseline
Warm-up 1: 0.022 ms/op
Iteration 1: 0.022 ms/op
Iteration 2: 0.022 ms/op
Iteration 3: 0.021 ms/op
Iteration 4: 0.021 ms/op
Iteration 5: 0.022 ms/op
Iteration 6: 0.022 ms/op
Iteration 7: 0.022 ms/op
Iteration 8: 0.021 ms/op
Iteration 9: 0.021 ms/op
Iteration 10: 0.021 ms/op
Success: 0.022 ±(99.9%) 0.001 ms/op [Average]
(min, avg, max) = (0.021, 0.022, 0.022), stdev = 0.001
CI (99.9%): [0.021, 0.022] (assumes normal distribution)
… me.bossm0n5t3r.chapter05.benchmarks.AccountsFinderPerformanceBenchmark.kotlinFind
Warm-up 1: 0.008 ms/op
Iteration 1: 0.008 ms/op
Iteration 2: 0.008 ms/op
Iteration 3: 0.008 ms/op
Iteration 4: 0.008 ms/op
Iteration 5: 0.008 ms/op
Iteration 6: 0.008 ms/op
Iteration 7: 0.008 ms/op
Iteration 8: 0.008 ms/op
Iteration 9: 0.008 ms/op
Iteration 10: 0.008 ms/op
Success: 0.008 ±(99.9%) 0.001 ms/op [Average]
(min, avg, max) = (0.008, 0.008, 0.008), stdev = 0.001
CI (99.9%): [0.008, 0.008] (assumes normal distribution)
… me.bossm0n5t3r.chapter05.benchmarks.AccountsFinderPerformanceBenchmark.parallelStream
Warm-up 1: 0.029 ms/op
Iteration 1: 0.029 ms/op
Iteration 2: 0.029 ms/op
Iteration 3: 0.029 ms/op
Iteration 4: 0.029 ms/op
Iteration 5: 0.029 ms/op
Iteration 6: 0.029 ms/op
Iteration 7: 0.029 ms/op
Iteration 8: 0.029 ms/op
Iteration 9: 0.029 ms/op
Iteration 10: 0.029 ms/op
Success: 0.029 ±(99.9%) 0.001 ms/op [Average]
(min, avg, max) = (0.029, 0.029, 0.029), stdev = 0.001
CI (99.9%): [0.028, 0.029] (assumes normal distribution)
main summary:
Benchmark Mode Cnt Score Error Units
AccountsFinderPerformanceBenchmark.baseline avgt 10 0.022 ± 0.001 ms/op
AccountsFinderPerformanceBenchmark.kotlinFind avgt 10 0.008 ± 0.001 ms/op
AccountsFinderPerformanceBenchmark.parallelStream avgt 10 0.029 ± 0.001 ms/op
BUILD SUCCESSFUL in 5m 31s
6 actionable tasks: 1 executed, 5 up-to-date
|