-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchapter3-maps.report.txt
2515 lines (2515 loc) · 129 KB
/
chapter3-maps.report.txt
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
[info] welcome to sbt 1.10.1 (Eclipse Adoptium Java 21.0.4)
[info] loading settings for project global-plugins from metals.sbt,plugins.sbt ...
[info] loading global plugins from /home/gaelrenoux/.sbt/1.0/plugins
[info] loading settings for project public-scalaio2024-benchmarks-build from plugins.sbt ...
[info] loading project definition from /home/gaelrenoux/Repositories/DataDome/public-scalaio2024-benchmarks/project
[success] Generated .bloop/public-scalaio2024-benchmarks-build.json
[success] Total time: 0 s, completed Nov 5, 2024, 7:43:48 PM
[info] loading settings for project public-scalaio2024-benchmarks from build.sbt ...
[info] set current project to scalaio2024-benchmarks (in build file:/home/gaelrenoux/Repositories/DataDome/public-scalaio2024-benchmarks/)
[info] running (fork) org.openjdk.jmh.Main -i 20 -wi 10 -f1 -t1 .*chapter3.MapBenchmark_Invoice_HalfHit_(Small|Large).*
[info] # JMH version: 1.37
[info] # VM version: JDK 21.0.4, OpenJDK 64-Bit Server VM, 21.0.4+7-LTS
[info] # VM invoker: /home/gaelrenoux/.sdkman/candidates/java/21.0.4-tem/bin/java
[info] # VM options: -server -Xms1g -Xmx1g -XX:NewSize=512m -XX:MaxNewSize=512m -XX:InitialCodeCacheSize=256m -XX:ReservedCodeCacheSize=256m -XX:+UseParallelGC -XX:MaxInlineLevel=18 -XX:+AlwaysPreTouch
[info] # Blackhole mode: compiler (auto-detected, use -Djmh.blackhole.autoDetect=false to disable)
[info] # Warmup: 10 iterations, 1 s each
[info] # Measurement: 20 iterations, 1 s each
[info] # Timeout: 10 min per iteration
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: co.datadome.pub.scalaio2024.benchmarks.chapter3.MapBenchmark_Invoice_HalfHit_Large.apply_ArrayMap
[info] # Run progress: 0.00% complete, ETA 00:05:00
[info] # Fork: 1 of 1
[info] # Warmup Iteration 1: 3463487.505 us/op
[info] # Warmup Iteration 2: 4.585 us/op
[info] # Warmup Iteration 3: 2.868 us/op
[info] # Warmup Iteration 4: 2.737 us/op
[info] # Warmup Iteration 5: 2.727 us/op
[info] # Warmup Iteration 6: 2.691 us/op
[info] # Warmup Iteration 7: 2.685 us/op
[info] # Warmup Iteration 8: 2.670 us/op
[info] # Warmup Iteration 9: 2.682 us/op
[info] # Warmup Iteration 10: 2.864 us/op
[info] Iteration 1: 2.699 us/op
[info] Iteration 2: 2.682 us/op
[info] Iteration 3: 2.678 us/op
[info] Iteration 4: 2.666 us/op
[info] Iteration 5: 2.719 us/op
[info] Iteration 6: 2.671 us/op
[info] Iteration 7: 2.696 us/op
[info] Iteration 8: 2.663 us/op
[info] Iteration 9: 2.686 us/op
[info] Iteration 10: 2.693 us/op
[info] Iteration 11: 2.672 us/op
[info] Iteration 12: 2.666 us/op
[info] Iteration 13: 2.679 us/op
[info] Iteration 14: 2.742 us/op
[info] Iteration 15: 2.708 us/op
[info] Iteration 16: 2.670 us/op
[info] Iteration 17: 2.687 us/op
[info] Iteration 18: 2.704 us/op
[info] Iteration 19: 2.670 us/op
[info] Iteration 20: 2.695 us/op
[info] Result "co.datadome.pub.scalaio2024.benchmarks.chapter3.MapBenchmark_Invoice_HalfHit_Large.apply_ArrayMap":
[info] 2.687 ±(99.9%) 0.018 us/op [Average]
[info] (min, avg, max) = (2.663, 2.687, 2.742), stdev = 0.020
[info] CI (99.9%): [2.670, 2.705] (assumes normal distribution)
[info] # JMH version: 1.37
[info] # VM version: JDK 21.0.4, OpenJDK 64-Bit Server VM, 21.0.4+7-LTS
[info] # VM invoker: /home/gaelrenoux/.sdkman/candidates/java/21.0.4-tem/bin/java
[info] # VM options: -server -Xms1g -Xmx1g -XX:NewSize=512m -XX:MaxNewSize=512m -XX:InitialCodeCacheSize=256m -XX:ReservedCodeCacheSize=256m -XX:+UseParallelGC -XX:MaxInlineLevel=18 -XX:+AlwaysPreTouch
[info] # Blackhole mode: compiler (auto-detected, use -Djmh.blackhole.autoDetect=false to disable)
[info] # Warmup: 10 iterations, 1 s each
[info] # Measurement: 20 iterations, 1 s each
[info] # Timeout: 10 min per iteration
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: co.datadome.pub.scalaio2024.benchmarks.chapter3.MapBenchmark_Invoice_HalfHit_Large.get_HashMap
[info] # Run progress: 10.00% complete, ETA 00:05:00
[info] # Fork: 1 of 1
[info] # Warmup Iteration 1: 3260995.108 us/op
[info] # Warmup Iteration 2: 93.112 us/op
[info] # Warmup Iteration 3: 68.158 us/op
[info] # Warmup Iteration 4: 68.876 us/op
[info] # Warmup Iteration 5: 70.473 us/op
[info] # Warmup Iteration 6: 69.164 us/op
[info] # Warmup Iteration 7: 69.477 us/op
[info] # Warmup Iteration 8: 68.994 us/op
[info] # Warmup Iteration 9: 69.184 us/op
[info] # Warmup Iteration 10: 68.738 us/op
[info] Iteration 1: 68.974 us/op
[info] Iteration 2: 69.489 us/op
[info] Iteration 3: 68.278 us/op
[info] Iteration 4: 68.705 us/op
[info] Iteration 5: 69.189 us/op
[info] Iteration 6: 68.389 us/op
[info] Iteration 7: 69.033 us/op
[info] Iteration 8: 68.631 us/op
[info] Iteration 9: 68.283 us/op
[info] Iteration 10: 73.770 us/op
[info] Iteration 11: 69.137 us/op
[info] Iteration 12: 69.875 us/op
[info] Iteration 13: 69.198 us/op
[info] Iteration 14: 68.534 us/op
[info] Iteration 15: 68.661 us/op
[info] Iteration 16: 68.743 us/op
[info] Iteration 17: 68.984 us/op
[info] Iteration 18: 67.854 us/op
[info] Iteration 19: 68.093 us/op
[info] Iteration 20: 68.989 us/op
[info] Result "co.datadome.pub.scalaio2024.benchmarks.chapter3.MapBenchmark_Invoice_HalfHit_Large.get_HashMap":
[info] 69.040 ±(99.9%) 1.054 us/op [Average]
[info] (min, avg, max) = (67.854, 69.040, 73.770), stdev = 1.214
[info] CI (99.9%): [67.987, 70.094] (assumes normal distribution)
[info] # JMH version: 1.37
[info] # VM version: JDK 21.0.4, OpenJDK 64-Bit Server VM, 21.0.4+7-LTS
[info] # VM invoker: /home/gaelrenoux/.sdkman/candidates/java/21.0.4-tem/bin/java
[info] # VM options: -server -Xms1g -Xmx1g -XX:NewSize=512m -XX:MaxNewSize=512m -XX:InitialCodeCacheSize=256m -XX:ReservedCodeCacheSize=256m -XX:+UseParallelGC -XX:MaxInlineLevel=18 -XX:+AlwaysPreTouch
[info] # Blackhole mode: compiler (auto-detected, use -Djmh.blackhole.autoDetect=false to disable)
[info] # Warmup: 10 iterations, 1 s each
[info] # Measurement: 20 iterations, 1 s each
[info] # Timeout: 10 min per iteration
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: co.datadome.pub.scalaio2024.benchmarks.chapter3.MapBenchmark_Invoice_HalfHit_Large.get_IntMap
[info] # Run progress: 20.00% complete, ETA 00:04:25
[info] # Fork: 1 of 1
[info] # Warmup Iteration 1: 4566097.163 us/op
[info] # Warmup Iteration 2: 369.628 us/op
[info] # Warmup Iteration 3: 391.063 us/op
[info] # Warmup Iteration 4: 288.375 us/op
[info] # Warmup Iteration 5: 287.144 us/op
[info] # Warmup Iteration 6: 286.125 us/op
[info] # Warmup Iteration 7: 297.721 us/op
[info] # Warmup Iteration 8: 294.780 us/op
[info] # Warmup Iteration 9: 288.956 us/op
[info] # Warmup Iteration 10: 287.642 us/op
[info] Iteration 1: 287.092 us/op
[info] Iteration 2: 293.685 us/op
[info] Iteration 3: 290.485 us/op
[info] Iteration 4: 286.406 us/op
[info] Iteration 5: 286.610 us/op
[info] Iteration 6: 466.682 us/op
[info] Iteration 7: 288.016 us/op
[info] Iteration 8: 292.772 us/op
[info] Iteration 9: 286.354 us/op
[info] Iteration 10: 308.484 us/op
[info] Iteration 11: 289.156 us/op
[info] Iteration 12: 288.798 us/op
[info] Iteration 13: 292.964 us/op
[info] Iteration 14: 291.710 us/op
[info] Iteration 15: 288.189 us/op
[info] Iteration 16: 288.104 us/op
[info] Iteration 17: 289.174 us/op
[info] Iteration 18: 295.025 us/op
[info] Iteration 19: 287.316 us/op
[info] Iteration 20: 291.499 us/op
[info] Result "co.datadome.pub.scalaio2024.benchmarks.chapter3.MapBenchmark_Invoice_HalfHit_Large.get_IntMap":
[info] 299.426 ±(99.9%) 34.453 us/op [Average]
[info] (min, avg, max) = (286.354, 299.426, 466.682), stdev = 39.676
[info] CI (99.9%): [264.973, 333.879] (assumes normal distribution)
[info] # JMH version: 1.37
[info] # VM version: JDK 21.0.4, OpenJDK 64-Bit Server VM, 21.0.4+7-LTS
[info] # VM invoker: /home/gaelrenoux/.sdkman/candidates/java/21.0.4-tem/bin/java
[info] # VM options: -server -Xms1g -Xmx1g -XX:NewSize=512m -XX:MaxNewSize=512m -XX:InitialCodeCacheSize=256m -XX:ReservedCodeCacheSize=256m -XX:+UseParallelGC -XX:MaxInlineLevel=18 -XX:+AlwaysPreTouch
[info] # Blackhole mode: compiler (auto-detected, use -Djmh.blackhole.autoDetect=false to disable)
[info] # Warmup: 10 iterations, 1 s each
[info] # Measurement: 20 iterations, 1 s each
[info] # Timeout: 10 min per iteration
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: co.datadome.pub.scalaio2024.benchmarks.chapter3.MapBenchmark_Invoice_HalfHit_Large.get_JavaHashMap
[info] # Run progress: 30.00% complete, ETA 00:03:55
[info] # Fork: 1 of 1
[info] # Warmup Iteration 1: 3694110.146 us/op
[info] # Warmup Iteration 2: 17.526 us/op
[info] # Warmup Iteration 3: 12.595 us/op
[info] # Warmup Iteration 4: 14.014 us/op
[info] # Warmup Iteration 5: 12.797 us/op
[info] # Warmup Iteration 6: 23.060 us/op
[info] # Warmup Iteration 7: 12.609 us/op
[info] # Warmup Iteration 8: 12.213 us/op
[info] # Warmup Iteration 9: 12.525 us/op
[info] # Warmup Iteration 10: 12.224 us/op
[info] Iteration 1: 12.259 us/op
[info] Iteration 2: 12.271 us/op
[info] Iteration 3: 12.278 us/op
[info] Iteration 4: 12.726 us/op
[info] Iteration 5: 12.369 us/op
[info] Iteration 6: 12.200 us/op
[info] Iteration 7: 12.423 us/op
[info] Iteration 8: 12.340 us/op
[info] Iteration 9: 12.601 us/op
[info] Iteration 10: 12.414 us/op
[info] Iteration 11: 12.366 us/op
[info] Iteration 12: 12.391 us/op
[info] Iteration 13: 12.932 us/op
[info] Iteration 14: 12.424 us/op
[info] Iteration 15: 12.264 us/op
[info] Iteration 16: 12.079 us/op
[info] Iteration 17: 12.150 us/op
[info] Iteration 18: 12.507 us/op
[info] Iteration 19: 12.394 us/op
[info] Iteration 20: 12.159 us/op
[info] Result "co.datadome.pub.scalaio2024.benchmarks.chapter3.MapBenchmark_Invoice_HalfHit_Large.get_JavaHashMap":
[info] 12.377 ±(99.9%) 0.175 us/op [Average]
[info] (min, avg, max) = (12.079, 12.377, 12.932), stdev = 0.202
[info] CI (99.9%): [12.202, 12.552] (assumes normal distribution)
[info] # JMH version: 1.37
[info] # VM version: JDK 21.0.4, OpenJDK 64-Bit Server VM, 21.0.4+7-LTS
[info] # VM invoker: /home/gaelrenoux/.sdkman/candidates/java/21.0.4-tem/bin/java
[info] # VM options: -server -Xms1g -Xmx1g -XX:NewSize=512m -XX:MaxNewSize=512m -XX:InitialCodeCacheSize=256m -XX:ReservedCodeCacheSize=256m -XX:+UseParallelGC -XX:MaxInlineLevel=18 -XX:+AlwaysPreTouch
[info] # Blackhole mode: compiler (auto-detected, use -Djmh.blackhole.autoDetect=false to disable)
[info] # Warmup: 10 iterations, 1 s each
[info] # Measurement: 20 iterations, 1 s each
[info] # Timeout: 10 min per iteration
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: co.datadome.pub.scalaio2024.benchmarks.chapter3.MapBenchmark_Invoice_HalfHit_Large.get_VectorMap
[info] # Run progress: 40.00% complete, ETA 00:03:21
[info] # Fork: 1 of 1
[info] # Warmup Iteration 1: 3673112.509 us/op
[info] # Warmup Iteration 2: 119.250 us/op
[info] # Warmup Iteration 3: 155.547 us/op
[info] # Warmup Iteration 4: 130.546 us/op
[info] # Warmup Iteration 5: 113.623 us/op
[info] # Warmup Iteration 6: 117.293 us/op
[info] # Warmup Iteration 7: 114.580 us/op
[info] # Warmup Iteration 8: 115.879 us/op
[info] # Warmup Iteration 9: 117.091 us/op
[info] # Warmup Iteration 10: 113.286 us/op
[info] Iteration 1: 113.664 us/op
[info] Iteration 2: 116.748 us/op
[info] Iteration 3: 114.109 us/op
[info] Iteration 4: 115.945 us/op
[info] Iteration 5: 113.709 us/op
[info] Iteration 6: 117.415 us/op
[info] Iteration 7: 113.369 us/op
[info] Iteration 8: 114.347 us/op
[info] Iteration 9: 115.935 us/op
[info] Iteration 10: 115.304 us/op
[info] Iteration 11: 114.649 us/op
[info] Iteration 12: 115.626 us/op
[info] Iteration 13: 114.272 us/op
[info] Iteration 14: 115.449 us/op
[info] Iteration 15: 113.838 us/op
[info] Iteration 16: 112.522 us/op
[info] Iteration 17: 115.691 us/op
[info] Iteration 18: 114.990 us/op
[info] Iteration 19: 115.429 us/op
[info] Iteration 20: 114.784 us/op
[info] Result "co.datadome.pub.scalaio2024.benchmarks.chapter3.MapBenchmark_Invoice_HalfHit_Large.get_VectorMap":
[info] 114.890 ±(99.9%) 1.040 us/op [Average]
[info] (min, avg, max) = (112.522, 114.890, 117.415), stdev = 1.198
[info] CI (99.9%): [113.849, 115.930] (assumes normal distribution)
[info] # JMH version: 1.37
[info] # VM version: JDK 21.0.4, OpenJDK 64-Bit Server VM, 21.0.4+7-LTS
[info] # VM invoker: /home/gaelrenoux/.sdkman/candidates/java/21.0.4-tem/bin/java
[info] # VM options: -server -Xms1g -Xmx1g -XX:NewSize=512m -XX:MaxNewSize=512m -XX:InitialCodeCacheSize=256m -XX:ReservedCodeCacheSize=256m -XX:+UseParallelGC -XX:MaxInlineLevel=18 -XX:+AlwaysPreTouch
[info] # Blackhole mode: compiler (auto-detected, use -Djmh.blackhole.autoDetect=false to disable)
[info] # Warmup: 10 iterations, 1 s each
[info] # Measurement: 20 iterations, 1 s each
[info] # Timeout: 10 min per iteration
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: co.datadome.pub.scalaio2024.benchmarks.chapter3.MapBenchmark_Invoice_HalfHit_Small.apply_ArrayMap
[info] # Run progress: 50.00% complete, ETA 00:02:51
[info] # Fork: 1 of 1
[info] # Warmup Iteration 1: 1163547.390 us/op
[info] # Warmup Iteration 2: 2.826 us/op
[info] # Warmup Iteration 3: 2.197 us/op
[info] # Warmup Iteration 4: 2.108 us/op
[info] # Warmup Iteration 5: 2.135 us/op
[info] # Warmup Iteration 6: 2.148 us/op
[info] # Warmup Iteration 7: 2.128 us/op
[info] # Warmup Iteration 8: 2.116 us/op
[info] # Warmup Iteration 9: 2.119 us/op
[info] # Warmup Iteration 10: 2.147 us/op
[info] Iteration 1: 2.179 us/op
[info] Iteration 2: 2.116 us/op
[info] Iteration 3: 2.105 us/op
[info] Iteration 4: 2.130 us/op
[info] Iteration 5: 2.127 us/op
[info] Iteration 6: 2.155 us/op
[info] Iteration 7: 2.213 us/op
[info] Iteration 8: 2.114 us/op
[info] Iteration 9: 2.131 us/op
[info] Iteration 10: 2.121 us/op
[info] Iteration 11: 2.139 us/op
[info] Iteration 12: 2.112 us/op
[info] Iteration 13: 2.164 us/op
[info] Iteration 14: 2.112 us/op
[info] Iteration 15: 2.118 us/op
[info] Iteration 16: 2.141 us/op
[info] Iteration 17: 2.126 us/op
[info] Iteration 18: 2.112 us/op
[info] Iteration 19: 2.105 us/op
[info] Iteration 20: 2.110 us/op
[info] Result "co.datadome.pub.scalaio2024.benchmarks.chapter3.MapBenchmark_Invoice_HalfHit_Small.apply_ArrayMap":
[info] 2.132 ±(99.9%) 0.024 us/op [Average]
[info] (min, avg, max) = (2.105, 2.132, 2.213), stdev = 0.028
[info] CI (99.9%): [2.108, 2.156] (assumes normal distribution)
[info] # JMH version: 1.37
[info] # VM version: JDK 21.0.4, OpenJDK 64-Bit Server VM, 21.0.4+7-LTS
[info] # VM invoker: /home/gaelrenoux/.sdkman/candidates/java/21.0.4-tem/bin/java
[info] # VM options: -server -Xms1g -Xmx1g -XX:NewSize=512m -XX:MaxNewSize=512m -XX:InitialCodeCacheSize=256m -XX:ReservedCodeCacheSize=256m -XX:+UseParallelGC -XX:MaxInlineLevel=18 -XX:+AlwaysPreTouch
[info] # Blackhole mode: compiler (auto-detected, use -Djmh.blackhole.autoDetect=false to disable)
[info] # Warmup: 10 iterations, 1 s each
[info] # Measurement: 20 iterations, 1 s each
[info] # Timeout: 10 min per iteration
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: co.datadome.pub.scalaio2024.benchmarks.chapter3.MapBenchmark_Invoice_HalfHit_Small.get_HashMap
[info] # Run progress: 60.00% complete, ETA 00:02:15
[info] # Fork: 1 of 1
[info] # Warmup Iteration 1: 7358.130 us/op
[info] # Warmup Iteration 2: 13.479 us/op
[info] # Warmup Iteration 3: 10.569 us/op
[info] # Warmup Iteration 4: 10.597 us/op
[info] # Warmup Iteration 5: 10.578 us/op
[info] # Warmup Iteration 6: 10.466 us/op
[info] # Warmup Iteration 7: 10.441 us/op
[info] # Warmup Iteration 8: 10.426 us/op
[info] # Warmup Iteration 9: 10.421 us/op
[info] # Warmup Iteration 10: 10.607 us/op
[info] Iteration 1: 10.566 us/op
[info] Iteration 2: 10.742 us/op
[info] Iteration 3: 10.388 us/op
[info] Iteration 4: 10.476 us/op
[info] Iteration 5: 10.560 us/op
[info] Iteration 6: 10.586 us/op
[info] Iteration 7: 10.377 us/op
[info] Iteration 8: 10.516 us/op
[info] Iteration 9: 10.433 us/op
[info] Iteration 10: 10.588 us/op
[info] Iteration 11: 10.591 us/op
[info] Iteration 12: 10.418 us/op
[info] Iteration 13: 10.397 us/op
[info] Iteration 14: 10.450 us/op
[info] Iteration 15: 10.584 us/op
[info] Iteration 16: 10.401 us/op
[info] Iteration 17: 10.804 us/op
[info] Iteration 18: 10.665 us/op
[info] Iteration 19: 10.487 us/op
[info] Iteration 20: 10.544 us/op
[info] Result "co.datadome.pub.scalaio2024.benchmarks.chapter3.MapBenchmark_Invoice_HalfHit_Small.get_HashMap":
[info] 10.529 ±(99.9%) 0.103 us/op [Average]
[info] (min, avg, max) = (10.377, 10.529, 10.804), stdev = 0.118
[info] CI (99.9%): [10.426, 10.631] (assumes normal distribution)
[info] # JMH version: 1.37
[info] # VM version: JDK 21.0.4, OpenJDK 64-Bit Server VM, 21.0.4+7-LTS
[info] # VM invoker: /home/gaelrenoux/.sdkman/candidates/java/21.0.4-tem/bin/java
[info] # VM options: -server -Xms1g -Xmx1g -XX:NewSize=512m -XX:MaxNewSize=512m -XX:InitialCodeCacheSize=256m -XX:ReservedCodeCacheSize=256m -XX:+UseParallelGC -XX:MaxInlineLevel=18 -XX:+AlwaysPreTouch
[info] # Blackhole mode: compiler (auto-detected, use -Djmh.blackhole.autoDetect=false to disable)
[info] # Warmup: 10 iterations, 1 s each
[info] # Measurement: 20 iterations, 1 s each
[info] # Timeout: 10 min per iteration
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: co.datadome.pub.scalaio2024.benchmarks.chapter3.MapBenchmark_Invoice_HalfHit_Small.get_IntMap
[info] # Run progress: 70.00% complete, ETA 00:01:40
[info] # Fork: 1 of 1
[info] # Warmup Iteration 1: 1106195.125 us/op
[info] # Warmup Iteration 2: 18.715 us/op
[info] # Warmup Iteration 3: 16.056 us/op
[info] # Warmup Iteration 4: 15.987 us/op
[info] # Warmup Iteration 5: 15.582 us/op
[info] # Warmup Iteration 6: 15.386 us/op
[info] # Warmup Iteration 7: 15.572 us/op
[info] # Warmup Iteration 8: 15.599 us/op
[info] # Warmup Iteration 9: 15.788 us/op
[info] # Warmup Iteration 10: 15.852 us/op
[info] Iteration 1: 15.585 us/op
[info] Iteration 2: 15.530 us/op
[info] Iteration 3: 15.900 us/op
[info] Iteration 4: 15.742 us/op
[info] Iteration 5: 16.051 us/op
[info] Iteration 6: 15.710 us/op
[info] Iteration 7: 15.582 us/op
[info] Iteration 8: 15.870 us/op
[info] Iteration 9: 15.692 us/op
[info] Iteration 10: 15.563 us/op
[info] Iteration 11: 15.814 us/op
[info] Iteration 12: 15.729 us/op
[info] Iteration 13: 15.810 us/op
[info] Iteration 14: 15.594 us/op
[info] Iteration 15: 15.585 us/op
[info] Iteration 16: 15.573 us/op
[info] Iteration 17: 15.888 us/op
[info] Iteration 18: 15.411 us/op
[info] Iteration 19: 15.678 us/op
[info] Iteration 20: 15.902 us/op
[info] Result "co.datadome.pub.scalaio2024.benchmarks.chapter3.MapBenchmark_Invoice_HalfHit_Small.get_IntMap":
[info] 15.710 ±(99.9%) 0.140 us/op [Average]
[info] (min, avg, max) = (15.411, 15.710, 16.051), stdev = 0.161
[info] CI (99.9%): [15.571, 15.850] (assumes normal distribution)
[info] # JMH version: 1.37
[info] # VM version: JDK 21.0.4, OpenJDK 64-Bit Server VM, 21.0.4+7-LTS
[info] # VM invoker: /home/gaelrenoux/.sdkman/candidates/java/21.0.4-tem/bin/java
[info] # VM options: -server -Xms1g -Xmx1g -XX:NewSize=512m -XX:MaxNewSize=512m -XX:InitialCodeCacheSize=256m -XX:ReservedCodeCacheSize=256m -XX:+UseParallelGC -XX:MaxInlineLevel=18 -XX:+AlwaysPreTouch
[info] # Blackhole mode: compiler (auto-detected, use -Djmh.blackhole.autoDetect=false to disable)
[info] # Warmup: 10 iterations, 1 s each
[info] # Measurement: 20 iterations, 1 s each
[info] # Timeout: 10 min per iteration
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: co.datadome.pub.scalaio2024.benchmarks.chapter3.MapBenchmark_Invoice_HalfHit_Small.get_JavaHashMap
[info] # Run progress: 80.00% complete, ETA 00:01:06
[info] # Fork: 1 of 1
[info] # Warmup Iteration 1: 1041834.823 us/op
[info] # Warmup Iteration 2: 8.227 us/op
[info] # Warmup Iteration 3: 7.044 us/op
[info] # Warmup Iteration 4: 6.863 us/op
[info] # Warmup Iteration 5: 6.843 us/op
[info] # Warmup Iteration 6: 6.786 us/op
[info] # Warmup Iteration 7: 6.788 us/op
[info] # Warmup Iteration 8: 6.886 us/op
[info] # Warmup Iteration 9: 6.767 us/op
[info] # Warmup Iteration 10: 6.765 us/op
[info] Iteration 1: 6.827 us/op
[info] Iteration 2: 6.865 us/op
[info] Iteration 3: 6.865 us/op
[info] Iteration 4: 6.781 us/op
[info] Iteration 5: 6.845 us/op
[info] Iteration 6: 6.785 us/op
[info] Iteration 7: 6.782 us/op
[info] Iteration 8: 6.978 us/op
[info] Iteration 9: 6.808 us/op
[info] Iteration 10: 6.773 us/op
[info] Iteration 11: 6.765 us/op
[info] Iteration 12: 6.795 us/op
[info] Iteration 13: 6.885 us/op
[info] Iteration 14: 6.778 us/op
[info] Iteration 15: 6.772 us/op
[info] Iteration 16: 6.768 us/op
[info] Iteration 17: 6.802 us/op
[info] Iteration 18: 6.879 us/op
[info] Iteration 19: 6.770 us/op
[info] Iteration 20: 7.306 us/op
[info] Result "co.datadome.pub.scalaio2024.benchmarks.chapter3.MapBenchmark_Invoice_HalfHit_Small.get_JavaHashMap":
[info] 6.841 ±(99.9%) 0.106 us/op [Average]
[info] (min, avg, max) = (6.765, 6.841, 7.306), stdev = 0.122
[info] CI (99.9%): [6.735, 6.948] (assumes normal distribution)
[info] # JMH version: 1.37
[info] # VM version: JDK 21.0.4, OpenJDK 64-Bit Server VM, 21.0.4+7-LTS
[info] # VM invoker: /home/gaelrenoux/.sdkman/candidates/java/21.0.4-tem/bin/java
[info] # VM options: -server -Xms1g -Xmx1g -XX:NewSize=512m -XX:MaxNewSize=512m -XX:InitialCodeCacheSize=256m -XX:ReservedCodeCacheSize=256m -XX:+UseParallelGC -XX:MaxInlineLevel=18 -XX:+AlwaysPreTouch
[info] # Blackhole mode: compiler (auto-detected, use -Djmh.blackhole.autoDetect=false to disable)
[info] # Warmup: 10 iterations, 1 s each
[info] # Measurement: 20 iterations, 1 s each
[info] # Timeout: 10 min per iteration
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: co.datadome.pub.scalaio2024.benchmarks.chapter3.MapBenchmark_Invoice_HalfHit_Small.get_VectorMap
[info] # Run progress: 90.00% complete, ETA 00:00:32
[info] # Fork: 1 of 1
[info] # Warmup Iteration 1: 1097620.032 us/op
[info] # Warmup Iteration 2: 16.723 us/op
[info] # Warmup Iteration 3: 12.512 us/op
[info] # Warmup Iteration 4: 12.462 us/op
[info] # Warmup Iteration 5: 12.407 us/op
[info] # Warmup Iteration 6: 12.278 us/op
[info] # Warmup Iteration 7: 12.430 us/op
[info] # Warmup Iteration 8: 12.295 us/op
[info] # Warmup Iteration 9: 12.322 us/op
[info] # Warmup Iteration 10: 12.246 us/op
[info] Iteration 1: 12.259 us/op
[info] Iteration 2: 12.447 us/op
[info] Iteration 3: 12.318 us/op
[info] Iteration 4: 12.328 us/op
[info] Iteration 5: 12.394 us/op
[info] Iteration 6: 12.337 us/op
[info] Iteration 7: 12.668 us/op
[info] Iteration 8: 12.166 us/op
[info] Iteration 9: 12.202 us/op
[info] Iteration 10: 12.229 us/op
[info] Iteration 11: 12.440 us/op
[info] Iteration 12: 12.377 us/op
[info] Iteration 13: 12.206 us/op
[info] Iteration 14: 12.238 us/op
[info] Iteration 15: 12.261 us/op
[info] Iteration 16: 12.189 us/op
[info] Iteration 17: 12.380 us/op
[info] Iteration 18: 12.278 us/op
[info] Iteration 19: 12.304 us/op
[info] Iteration 20: 12.271 us/op
[info] Result "co.datadome.pub.scalaio2024.benchmarks.chapter3.MapBenchmark_Invoice_HalfHit_Small.get_VectorMap":
[info] 12.315 ±(99.9%) 0.101 us/op [Average]
[info] (min, avg, max) = (12.166, 12.315, 12.668), stdev = 0.117
[info] CI (99.9%): [12.213, 12.416] (assumes normal distribution)
[info] # Run complete. Total time: 00:05:26
[info] REMEMBER: The numbers below are just data. To gain reusable insights, you need to follow up on
[info] why the numbers are the way they are. Use profilers (see -prof, -lprof), design factorial
[info] experiments, perform baseline and negative tests that provide experimental control, make sure
[info] the benchmarking environment is safe on JVM/OS/HW level, ask for reviews from the domain experts.
[info] Do not assume the numbers tell you what you want them to tell.
[info] NOTE: Current JVM experimentally supports Compiler Blackholes, and they are in use. Please exercise
[info] extra caution when trusting the results, look into the generated code to check the benchmark still
[info] works, and factor in a small probability of new VM bugs. Additionally, while comparisons between
[info] different JVMs are already problematic, the performance difference caused by different Blackhole
[info] modes can be very significant. Please make sure you use the consistent Blackhole mode for comparisons.
[info] Benchmark Mode Cnt Score Error Units
[info] MapBenchmark_Invoice_HalfHit_Large.apply_ArrayMap avgt 20 2.687 ± 0.018 us/op
[info] MapBenchmark_Invoice_HalfHit_Large.get_HashMap avgt 20 69.040 ± 1.054 us/op
[info] MapBenchmark_Invoice_HalfHit_Large.get_IntMap avgt 20 299.426 ± 34.453 us/op
[info] MapBenchmark_Invoice_HalfHit_Large.get_JavaHashMap avgt 20 12.377 ± 0.175 us/op
[info] MapBenchmark_Invoice_HalfHit_Large.get_VectorMap avgt 20 114.890 ± 1.040 us/op
[info] MapBenchmark_Invoice_HalfHit_Small.apply_ArrayMap avgt 20 2.132 ± 0.024 us/op
[info] MapBenchmark_Invoice_HalfHit_Small.get_HashMap avgt 20 10.529 ± 0.103 us/op
[info] MapBenchmark_Invoice_HalfHit_Small.get_IntMap avgt 20 15.710 ± 0.140 us/op
[info] MapBenchmark_Invoice_HalfHit_Small.get_JavaHashMap avgt 20 6.841 ± 0.106 us/op
[info] MapBenchmark_Invoice_HalfHit_Small.get_VectorMap avgt 20 12.315 ± 0.101 us/op
[success] Total time: 329 s (05:29), completed Nov 5, 2024, 7:49:17 PM
[info] welcome to sbt 1.10.1 (Eclipse Adoptium Java 21.0.4)
[info] loading settings for project global-plugins from metals.sbt,plugins.sbt ...
[info] loading global plugins from /home/gaelrenoux/.sbt/1.0/plugins
[info] loading settings for project public-scalaio2024-benchmarks-build from plugins.sbt ...
[info] loading project definition from /home/gaelrenoux/Repositories/DataDome/public-scalaio2024-benchmarks/project
[success] Generated .bloop/public-scalaio2024-benchmarks-build.json
[success] Total time: 0 s, completed Nov 5, 2024, 10:21:43 PM
[info] loading settings for project public-scalaio2024-benchmarks from build.sbt ...
[info] set current project to scalaio2024-benchmarks (in build file:/home/gaelrenoux/Repositories/DataDome/public-scalaio2024-benchmarks/)
[info] running (fork) org.openjdk.jmh.Main -i 20 -wi 10 -f1 -t1 .*chapter3.MapBenchmark_Invoice_HalfHit_(Small|Large).*
[info] # JMH version: 1.37
[info] # VM version: JDK 21.0.4, OpenJDK 64-Bit Server VM, 21.0.4+7-LTS
[info] # VM invoker: /home/gaelrenoux/.sdkman/candidates/java/21.0.4-tem/bin/java
[info] # VM options: -server -Xms1g -Xmx1g -XX:NewSize=512m -XX:MaxNewSize=512m -XX:InitialCodeCacheSize=256m -XX:ReservedCodeCacheSize=256m -XX:+UseParallelGC -XX:MaxInlineLevel=18 -XX:+AlwaysPreTouch
[info] # Blackhole mode: compiler (auto-detected, use -Djmh.blackhole.autoDetect=false to disable)
[info] # Warmup: 10 iterations, 1 s each
[info] # Measurement: 20 iterations, 1 s each
[info] # Timeout: 10 min per iteration
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: co.datadome.pub.scalaio2024.benchmarks.chapter3.MapBenchmark_Invoice_HalfHit_Large.apply_ArrayMap
[info] # Run progress: 0.00% complete, ETA 00:05:00
[info] # Fork: 1 of 1
[info] # Warmup Iteration 1: 3580470.479 us/op
[info] # Warmup Iteration 2: 11.131 us/op
[info] # Warmup Iteration 3: 2.688 us/op
[info] # Warmup Iteration 4: 2.695 us/op
[info] # Warmup Iteration 5: 2.675 us/op
[info] # Warmup Iteration 6: 2.683 us/op
[info] # Warmup Iteration 7: 2.695 us/op
[info] # Warmup Iteration 8: 2.658 us/op
[info] # Warmup Iteration 9: 2.672 us/op
[info] # Warmup Iteration 10: 2.720 us/op
[info] Iteration 1: 2.693 us/op
[info] Iteration 2: 2.711 us/op
[info] Iteration 3: 2.673 us/op
[info] Iteration 4: 2.683 us/op
[info] Iteration 5: 2.652 us/op
[info] Iteration 6: 2.665 us/op
[info] Iteration 7: 2.694 us/op
[info] Iteration 8: 2.684 us/op
[info] Iteration 9: 2.690 us/op
[info] Iteration 10: 2.670 us/op
[info] Iteration 11: 2.656 us/op
[info] Iteration 12: 2.710 us/op
[info] Iteration 13: 2.687 us/op
[info] Iteration 14: 2.667 us/op
[info] Iteration 15: 2.656 us/op
[info] Iteration 16: 2.654 us/op
[info] Iteration 17: 2.708 us/op
[info] Iteration 18: 2.665 us/op
[info] Iteration 19: 2.657 us/op
[info] Iteration 20: 2.723 us/op
[info] Result "co.datadome.pub.scalaio2024.benchmarks.chapter3.MapBenchmark_Invoice_HalfHit_Large.apply_ArrayMap":
[info] 2.680 ±(99.9%) 0.019 us/op [Average]
[info] (min, avg, max) = (2.652, 2.680, 2.723), stdev = 0.022
[info] CI (99.9%): [2.661, 2.699] (assumes normal distribution)
[info] # JMH version: 1.37
[info] # VM version: JDK 21.0.4, OpenJDK 64-Bit Server VM, 21.0.4+7-LTS
[info] # VM invoker: /home/gaelrenoux/.sdkman/candidates/java/21.0.4-tem/bin/java
[info] # VM options: -server -Xms1g -Xmx1g -XX:NewSize=512m -XX:MaxNewSize=512m -XX:InitialCodeCacheSize=256m -XX:ReservedCodeCacheSize=256m -XX:+UseParallelGC -XX:MaxInlineLevel=18 -XX:+AlwaysPreTouch
[info] # Blackhole mode: compiler (auto-detected, use -Djmh.blackhole.autoDetect=false to disable)
[info] # Warmup: 10 iterations, 1 s each
[info] # Measurement: 20 iterations, 1 s each
[info] # Timeout: 10 min per iteration
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: co.datadome.pub.scalaio2024.benchmarks.chapter3.MapBenchmark_Invoice_HalfHit_Large.get_HashMap
[info] # Run progress: 10.00% complete, ETA 00:05:02
[info] # Fork: 1 of 1
[info] # Warmup Iteration 1: 3415832.345 us/op
[info] # Warmup Iteration 2: 94.450 us/op
[info] # Warmup Iteration 3: 73.015 us/op
[info] # Warmup Iteration 4: 68.820 us/op
[info] # Warmup Iteration 5: 76.534 us/op
[info] # Warmup Iteration 6: 74.064 us/op
[info] # Warmup Iteration 7: 73.612 us/op
[info] # Warmup Iteration 8: 75.046 us/op
[info] # Warmup Iteration 9: 74.019 us/op
[info] # Warmup Iteration 10: 77.609 us/op
[info] Iteration 1: 72.725 us/op
[info] Iteration 2: 72.332 us/op
[info] Iteration 3: 74.627 us/op
[info] Iteration 4: 72.617 us/op
[info] Iteration 5: 72.145 us/op
[info] Iteration 6: 73.546 us/op
[info] Iteration 7: 72.362 us/op
[info] Iteration 8: 74.091 us/op
[info] Iteration 9: 72.088 us/op
[info] Iteration 10: 72.881 us/op
[info] Iteration 11: 72.351 us/op
[info] Iteration 12: 74.095 us/op
[info] Iteration 13: 73.678 us/op
[info] Iteration 14: 72.692 us/op
[info] Iteration 15: 71.634 us/op
[info] Iteration 16: 73.268 us/op
[info] Iteration 17: 73.167 us/op
[info] Iteration 18: 74.602 us/op
[info] Iteration 19: 73.909 us/op
[info] Iteration 20: 73.760 us/op
[info] Result "co.datadome.pub.scalaio2024.benchmarks.chapter3.MapBenchmark_Invoice_HalfHit_Large.get_HashMap":
[info] 73.128 ±(99.9%) 0.760 us/op [Average]
[info] (min, avg, max) = (71.634, 73.128, 74.627), stdev = 0.876
[info] CI (99.9%): [72.368, 73.889] (assumes normal distribution)
[info] # JMH version: 1.37
[info] # VM version: JDK 21.0.4, OpenJDK 64-Bit Server VM, 21.0.4+7-LTS
[info] # VM invoker: /home/gaelrenoux/.sdkman/candidates/java/21.0.4-tem/bin/java
[info] # VM options: -server -Xms1g -Xmx1g -XX:NewSize=512m -XX:MaxNewSize=512m -XX:InitialCodeCacheSize=256m -XX:ReservedCodeCacheSize=256m -XX:+UseParallelGC -XX:MaxInlineLevel=18 -XX:+AlwaysPreTouch
[info] # Blackhole mode: compiler (auto-detected, use -Djmh.blackhole.autoDetect=false to disable)
[info] # Warmup: 10 iterations, 1 s each
[info] # Measurement: 20 iterations, 1 s each
[info] # Timeout: 10 min per iteration
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: co.datadome.pub.scalaio2024.benchmarks.chapter3.MapBenchmark_Invoice_HalfHit_Large.get_IntMap
[info] # Run progress: 20.00% complete, ETA 00:04:27
[info] # Fork: 1 of 1
[info] # Warmup Iteration 1: 4412298.737 us/op
[info] # Warmup Iteration 2: 346.642 us/op
[info] # Warmup Iteration 3: 294.517 us/op
[info] # Warmup Iteration 4: 263.848 us/op
[info] # Warmup Iteration 5: 263.136 us/op
[info] # Warmup Iteration 6: 271.147 us/op
[info] # Warmup Iteration 7: 286.253 us/op
[info] # Warmup Iteration 8: 272.593 us/op
[info] # Warmup Iteration 9: 285.074 us/op
[info] # Warmup Iteration 10: 281.950 us/op
[info] Iteration 1: 424.106 us/op
[info] Iteration 2: 254.495 us/op
[info] Iteration 3: 263.541 us/op
[info] Iteration 4: 271.705 us/op
[info] Iteration 5: 267.922 us/op
[info] Iteration 6: 271.006 us/op
[info] Iteration 7: 261.381 us/op
[info] Iteration 8: 266.837 us/op
[info] Iteration 9: 274.558 us/op
[info] Iteration 10: 271.909 us/op
[info] Iteration 11: 269.187 us/op
[info] Iteration 12: 272.992 us/op
[info] Iteration 13: 269.437 us/op
[info] Iteration 14: 274.919 us/op
[info] Iteration 15: 267.987 us/op
[info] Iteration 16: 271.005 us/op
[info] Iteration 17: 270.668 us/op
[info] Iteration 18: 269.197 us/op
[info] Iteration 19: 273.030 us/op
[info] Iteration 20: 270.571 us/op
[info] Result "co.datadome.pub.scalaio2024.benchmarks.chapter3.MapBenchmark_Invoice_HalfHit_Large.get_IntMap":
[info] 276.823 ±(99.9%) 30.387 us/op [Average]
[info] (min, avg, max) = (254.495, 276.823, 424.106), stdev = 34.994
[info] CI (99.9%): [246.436, 307.209] (assumes normal distribution)
[info] # JMH version: 1.37
[info] # VM version: JDK 21.0.4, OpenJDK 64-Bit Server VM, 21.0.4+7-LTS
[info] # VM invoker: /home/gaelrenoux/.sdkman/candidates/java/21.0.4-tem/bin/java
[info] # VM options: -server -Xms1g -Xmx1g -XX:NewSize=512m -XX:MaxNewSize=512m -XX:InitialCodeCacheSize=256m -XX:ReservedCodeCacheSize=256m -XX:+UseParallelGC -XX:MaxInlineLevel=18 -XX:+AlwaysPreTouch
[info] # Blackhole mode: compiler (auto-detected, use -Djmh.blackhole.autoDetect=false to disable)
[info] # Warmup: 10 iterations, 1 s each
[info] # Measurement: 20 iterations, 1 s each
[info] # Timeout: 10 min per iteration
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: co.datadome.pub.scalaio2024.benchmarks.chapter3.MapBenchmark_Invoice_HalfHit_Large.get_JavaHashMap
[info] # Run progress: 30.00% complete, ETA 00:03:55
[info] # Fork: 1 of 1
[info] # Warmup Iteration 1: 3539501.196 us/op
[info] # Warmup Iteration 2: 17.952 us/op
[info] # Warmup Iteration 3: 12.272 us/op
[info] # Warmup Iteration 4: 13.429 us/op
[info] # Warmup Iteration 5: 13.221 us/op
[info] # Warmup Iteration 6: 24.313 us/op
[info] # Warmup Iteration 7: 12.764 us/op
[info] # Warmup Iteration 8: 12.733 us/op
[info] # Warmup Iteration 9: 12.631 us/op
[info] # Warmup Iteration 10: 13.985 us/op
[info] Iteration 1: 12.863 us/op
[info] Iteration 2: 12.622 us/op
[info] Iteration 3: 12.690 us/op
[info] Iteration 4: 12.708 us/op
[info] Iteration 5: 12.712 us/op
[info] Iteration 6: 12.771 us/op
[info] Iteration 7: 12.569 us/op
[info] Iteration 8: 12.781 us/op
[info] Iteration 9: 12.545 us/op
[info] Iteration 10: 12.884 us/op
[info] Iteration 11: 13.124 us/op
[info] Iteration 12: 12.457 us/op
[info] Iteration 13: 12.544 us/op
[info] Iteration 14: 12.500 us/op
[info] Iteration 15: 12.533 us/op
[info] Iteration 16: 12.787 us/op
[info] Iteration 17: 12.814 us/op
[info] Iteration 18: 12.787 us/op
[info] Iteration 19: 12.698 us/op
[info] Iteration 20: 12.875 us/op
[info] Result "co.datadome.pub.scalaio2024.benchmarks.chapter3.MapBenchmark_Invoice_HalfHit_Large.get_JavaHashMap":
[info] 12.713 ±(99.9%) 0.142 us/op [Average]
[info] (min, avg, max) = (12.457, 12.713, 13.124), stdev = 0.163
[info] CI (99.9%): [12.572, 12.855] (assumes normal distribution)
[info] # JMH version: 1.37
[info] # VM version: JDK 21.0.4, OpenJDK 64-Bit Server VM, 21.0.4+7-LTS
[info] # VM invoker: /home/gaelrenoux/.sdkman/candidates/java/21.0.4-tem/bin/java
[info] # VM options: -server -Xms1g -Xmx1g -XX:NewSize=512m -XX:MaxNewSize=512m -XX:InitialCodeCacheSize=256m -XX:ReservedCodeCacheSize=256m -XX:+UseParallelGC -XX:MaxInlineLevel=18 -XX:+AlwaysPreTouch
[info] # Blackhole mode: compiler (auto-detected, use -Djmh.blackhole.autoDetect=false to disable)
[info] # Warmup: 10 iterations, 1 s each
[info] # Measurement: 20 iterations, 1 s each
[info] # Timeout: 10 min per iteration
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: co.datadome.pub.scalaio2024.benchmarks.chapter3.MapBenchmark_Invoice_HalfHit_Large.get_VectorMap
[info] # Run progress: 40.00% complete, ETA 00:03:21
[info] # Fork: 1 of 1
[info] # Warmup Iteration 1: 3826859.802 us/op
[info] # Warmup Iteration 2: 123.230 us/op
[info] # Warmup Iteration 3: 164.358 us/op
[info] # Warmup Iteration 4: 126.836 us/op
[info] # Warmup Iteration 5: 118.030 us/op
[info] # Warmup Iteration 6: 118.513 us/op
[info] # Warmup Iteration 7: 117.326 us/op
[info] # Warmup Iteration 8: 99.815 us/op
[info] # Warmup Iteration 9: 141.768 us/op
[info] # Warmup Iteration 10: 128.216 us/op
[info] Iteration 1: 118.438 us/op
[info] Iteration 2: 103.455 us/op
[info] Iteration 3: 131.383 us/op
[info] Iteration 4: 129.051 us/op
[info] Iteration 5: 117.989 us/op
[info] Iteration 6: 101.303 us/op
[info] Iteration 7: 127.931 us/op
[info] Iteration 8: 127.919 us/op
[info] Iteration 9: 117.551 us/op
[info] Iteration 10: 99.605 us/op
[info] Iteration 11: 133.253 us/op
[info] Iteration 12: 131.316 us/op
[info] Iteration 13: 117.557 us/op
[info] Iteration 14: 99.639 us/op
[info] Iteration 15: 130.518 us/op
[info] Iteration 16: 129.539 us/op
[info] Iteration 17: 118.563 us/op
[info] Iteration 18: 117.874 us/op
[info] Iteration 19: 117.092 us/op
[info] Iteration 20: 118.131 us/op
[info] Result "co.datadome.pub.scalaio2024.benchmarks.chapter3.MapBenchmark_Invoice_HalfHit_Large.get_VectorMap":
[info] 119.405 ±(99.9%) 9.608 us/op [Average]
[info] (min, avg, max) = (99.605, 119.405, 133.253), stdev = 11.065
[info] CI (99.9%): [109.797, 129.014] (assumes normal distribution)
[info] # JMH version: 1.37
[info] # VM version: JDK 21.0.4, OpenJDK 64-Bit Server VM, 21.0.4+7-LTS
[info] # VM invoker: /home/gaelrenoux/.sdkman/candidates/java/21.0.4-tem/bin/java
[info] # VM options: -server -Xms1g -Xmx1g -XX:NewSize=512m -XX:MaxNewSize=512m -XX:InitialCodeCacheSize=256m -XX:ReservedCodeCacheSize=256m -XX:+UseParallelGC -XX:MaxInlineLevel=18 -XX:+AlwaysPreTouch
[info] # Blackhole mode: compiler (auto-detected, use -Djmh.blackhole.autoDetect=false to disable)
[info] # Warmup: 10 iterations, 1 s each
[info] # Measurement: 20 iterations, 1 s each
[info] # Timeout: 10 min per iteration
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: co.datadome.pub.scalaio2024.benchmarks.chapter3.MapBenchmark_Invoice_HalfHit_Small.apply_ArrayMap
[info] # Run progress: 50.00% complete, ETA 00:02:50
[info] # Fork: 1 of 1
[info] # Warmup Iteration 1: 1018.075 us/op
[info] # Warmup Iteration 2: 2.598 us/op
[info] # Warmup Iteration 3: 2.185 us/op
[info] # Warmup Iteration 4: 2.150 us/op
[info] # Warmup Iteration 5: 2.108 us/op
[info] # Warmup Iteration 6: 2.125 us/op
[info] # Warmup Iteration 7: 2.100 us/op
[info] # Warmup Iteration 8: 2.121 us/op
[info] # Warmup Iteration 9: 2.130 us/op
[info] # Warmup Iteration 10: 2.119 us/op
[info] Iteration 1: 2.104 us/op
[info] Iteration 2: 2.115 us/op
[info] Iteration 3: 2.112 us/op
[info] Iteration 4: 2.122 us/op
[info] Iteration 5: 2.103 us/op
[info] Iteration 6: 2.119 us/op
[info] Iteration 7: 2.117 us/op
[info] Iteration 8: 2.118 us/op
[info] Iteration 9: 2.130 us/op
[info] Iteration 10: 2.120 us/op
[info] Iteration 11: 2.121 us/op
[info] Iteration 12: 2.115 us/op
[info] Iteration 13: 2.108 us/op
[info] Iteration 14: 2.137 us/op
[info] Iteration 15: 2.115 us/op
[info] Iteration 16: 2.101 us/op
[info] Iteration 17: 2.096 us/op
[info] Iteration 18: 2.103 us/op
[info] Iteration 19: 2.184 us/op
[info] Iteration 20: 2.129 us/op
[info] Result "co.datadome.pub.scalaio2024.benchmarks.chapter3.MapBenchmark_Invoice_HalfHit_Small.apply_ArrayMap":
[info] 2.118 ±(99.9%) 0.016 us/op [Average]
[info] (min, avg, max) = (2.096, 2.118, 2.184), stdev = 0.019
[info] CI (99.9%): [2.102, 2.135] (assumes normal distribution)
[info] # JMH version: 1.37
[info] # VM version: JDK 21.0.4, OpenJDK 64-Bit Server VM, 21.0.4+7-LTS
[info] # VM invoker: /home/gaelrenoux/.sdkman/candidates/java/21.0.4-tem/bin/java
[info] # VM options: -server -Xms1g -Xmx1g -XX:NewSize=512m -XX:MaxNewSize=512m -XX:InitialCodeCacheSize=256m -XX:ReservedCodeCacheSize=256m -XX:+UseParallelGC -XX:MaxInlineLevel=18 -XX:+AlwaysPreTouch
[info] # Blackhole mode: compiler (auto-detected, use -Djmh.blackhole.autoDetect=false to disable)
[info] # Warmup: 10 iterations, 1 s each
[info] # Measurement: 20 iterations, 1 s each
[info] # Timeout: 10 min per iteration
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: co.datadome.pub.scalaio2024.benchmarks.chapter3.MapBenchmark_Invoice_HalfHit_Small.get_HashMap
[info] # Run progress: 60.00% complete, ETA 00:02:13
[info] # Fork: 1 of 1
[info] # Warmup Iteration 1: 1012.784 us/op
[info] # Warmup Iteration 2: 12.551 us/op
[info] # Warmup Iteration 3: 10.537 us/op
[info] # Warmup Iteration 4: 10.497 us/op
[info] # Warmup Iteration 5: 10.332 us/op
[info] # Warmup Iteration 6: 10.362 us/op
[info] # Warmup Iteration 7: 10.340 us/op
[info] # Warmup Iteration 8: 10.301 us/op
[info] # Warmup Iteration 9: 10.457 us/op
[info] # Warmup Iteration 10: 10.377 us/op
[info] Iteration 1: 10.407 us/op
[info] Iteration 2: 10.339 us/op
[info] Iteration 3: 10.304 us/op
[info] Iteration 4: 10.515 us/op
[info] Iteration 5: 10.296 us/op
[info] Iteration 6: 10.329 us/op
[info] Iteration 7: 11.139 us/op
[info] Iteration 8: 10.376 us/op
[info] Iteration 9: 10.471 us/op
[info] Iteration 10: 10.333 us/op
[info] Iteration 11: 10.564 us/op
[info] Iteration 12: 10.425 us/op
[info] Iteration 13: 10.327 us/op
[info] Iteration 14: 10.510 us/op
[info] Iteration 15: 10.380 us/op
[info] Iteration 16: 10.392 us/op
[info] Iteration 17: 10.319 us/op
[info] Iteration 18: 10.311 us/op
[info] Iteration 19: 10.479 us/op
[info] Iteration 20: 10.368 us/op
[info] Result "co.datadome.pub.scalaio2024.benchmarks.chapter3.MapBenchmark_Invoice_HalfHit_Small.get_HashMap":
[info] 10.429 ±(99.9%) 0.160 us/op [Average]
[info] (min, avg, max) = (10.296, 10.429, 11.139), stdev = 0.185
[info] CI (99.9%): [10.269, 10.590] (assumes normal distribution)
[info] # JMH version: 1.37
[info] # VM version: JDK 21.0.4, OpenJDK 64-Bit Server VM, 21.0.4+7-LTS
[info] # VM invoker: /home/gaelrenoux/.sdkman/candidates/java/21.0.4-tem/bin/java
[info] # VM options: -server -Xms1g -Xmx1g -XX:NewSize=512m -XX:MaxNewSize=512m -XX:InitialCodeCacheSize=256m -XX:ReservedCodeCacheSize=256m -XX:+UseParallelGC -XX:MaxInlineLevel=18 -XX:+AlwaysPreTouch
[info] # Blackhole mode: compiler (auto-detected, use -Djmh.blackhole.autoDetect=false to disable)
[info] # Warmup: 10 iterations, 1 s each
[info] # Measurement: 20 iterations, 1 s each
[info] # Timeout: 10 min per iteration
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: co.datadome.pub.scalaio2024.benchmarks.chapter3.MapBenchmark_Invoice_HalfHit_Small.get_IntMap
[info] # Run progress: 70.00% complete, ETA 00:01:39
[info] # Fork: 1 of 1
[info] # Warmup Iteration 1: 9908.208 us/op
[info] # Warmup Iteration 2: 17.456 us/op
[info] # Warmup Iteration 3: 15.501 us/op
[info] # Warmup Iteration 4: 15.025 us/op
[info] # Warmup Iteration 5: 14.999 us/op
[info] # Warmup Iteration 6: 14.958 us/op
[info] # Warmup Iteration 7: 15.215 us/op
[info] # Warmup Iteration 8: 15.064 us/op
[info] # Warmup Iteration 9: 14.926 us/op
[info] # Warmup Iteration 10: 14.916 us/op
[info] Iteration 1: 15.091 us/op
[info] Iteration 2: 14.797 us/op
[info] Iteration 3: 15.185 us/op
[info] Iteration 4: 14.743 us/op
[info] Iteration 5: 14.942 us/op
[info] Iteration 6: 14.933 us/op
[info] Iteration 7: 14.768 us/op
[info] Iteration 8: 15.080 us/op
[info] Iteration 9: 14.929 us/op
[info] Iteration 10: 14.854 us/op
[info] Iteration 11: 14.898 us/op
[info] Iteration 12: 15.431 us/op
[info] Iteration 13: 15.049 us/op
[info] Iteration 14: 14.774 us/op
[info] Iteration 15: 14.832 us/op
[info] Iteration 16: 14.956 us/op
[info] Iteration 17: 15.121 us/op
[info] Iteration 18: 15.082 us/op
[info] Iteration 19: 14.801 us/op
[info] Iteration 20: 14.879 us/op
[info] Result "co.datadome.pub.scalaio2024.benchmarks.chapter3.MapBenchmark_Invoice_HalfHit_Small.get_IntMap":
[info] 14.957 ±(99.9%) 0.150 us/op [Average]
[info] (min, avg, max) = (14.743, 14.957, 15.431), stdev = 0.172
[info] CI (99.9%): [14.808, 15.107] (assumes normal distribution)
[info] # JMH version: 1.37
[info] # VM version: JDK 21.0.4, OpenJDK 64-Bit Server VM, 21.0.4+7-LTS
[info] # VM invoker: /home/gaelrenoux/.sdkman/candidates/java/21.0.4-tem/bin/java
[info] # VM options: -server -Xms1g -Xmx1g -XX:NewSize=512m -XX:MaxNewSize=512m -XX:InitialCodeCacheSize=256m -XX:ReservedCodeCacheSize=256m -XX:+UseParallelGC -XX:MaxInlineLevel=18 -XX:+AlwaysPreTouch
[info] # Blackhole mode: compiler (auto-detected, use -Djmh.blackhole.autoDetect=false to disable)
[info] # Warmup: 10 iterations, 1 s each
[info] # Measurement: 20 iterations, 1 s each
[info] # Timeout: 10 min per iteration
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: co.datadome.pub.scalaio2024.benchmarks.chapter3.MapBenchmark_Invoice_HalfHit_Small.get_JavaHashMap
[info] # Run progress: 80.00% complete, ETA 00:01:05
[info] # Fork: 1 of 1
[info] # Warmup Iteration 1: 947.717 us/op
[info] # Warmup Iteration 2: 7.759 us/op
[info] # Warmup Iteration 3: 6.948 us/op
[info] # Warmup Iteration 4: 6.856 us/op
[info] # Warmup Iteration 5: 6.957 us/op
[info] # Warmup Iteration 6: 6.831 us/op
[info] # Warmup Iteration 7: 6.932 us/op
[info] # Warmup Iteration 8: 6.832 us/op
[info] # Warmup Iteration 9: 7.030 us/op
[info] # Warmup Iteration 10: 6.838 us/op
[info] Iteration 1: 6.943 us/op
[info] Iteration 2: 6.908 us/op
[info] Iteration 3: 6.863 us/op
[info] Iteration 4: 6.830 us/op
[info] Iteration 5: 6.815 us/op
[info] Iteration 6: 6.840 us/op
[info] Iteration 7: 6.961 us/op
[info] Iteration 8: 6.826 us/op
[info] Iteration 9: 6.892 us/op
[info] Iteration 10: 6.821 us/op
[info] Iteration 11: 6.855 us/op
[info] Iteration 12: 7.070 us/op
[info] Iteration 13: 6.823 us/op
[info] Iteration 14: 7.396 us/op
[info] Iteration 15: 6.872 us/op
[info] Iteration 16: 6.845 us/op
[info] Iteration 17: 6.900 us/op
[info] Iteration 18: 6.820 us/op
[info] Iteration 19: 6.942 us/op
[info] Iteration 20: 6.816 us/op
[info] Result "co.datadome.pub.scalaio2024.benchmarks.chapter3.MapBenchmark_Invoice_HalfHit_Small.get_JavaHashMap":
[info] 6.902 ±(99.9%) 0.116 us/op [Average]
[info] (min, avg, max) = (6.815, 6.902, 7.396), stdev = 0.133
[info] CI (99.9%): [6.786, 7.017] (assumes normal distribution)
[info] # JMH version: 1.37
[info] # VM version: JDK 21.0.4, OpenJDK 64-Bit Server VM, 21.0.4+7-LTS
[info] # VM invoker: /home/gaelrenoux/.sdkman/candidates/java/21.0.4-tem/bin/java
[info] # VM options: -server -Xms1g -Xmx1g -XX:NewSize=512m -XX:MaxNewSize=512m -XX:InitialCodeCacheSize=256m -XX:ReservedCodeCacheSize=256m -XX:+UseParallelGC -XX:MaxInlineLevel=18 -XX:+AlwaysPreTouch
[info] # Blackhole mode: compiler (auto-detected, use -Djmh.blackhole.autoDetect=false to disable)
[info] # Warmup: 10 iterations, 1 s each
[info] # Measurement: 20 iterations, 1 s each
[info] # Timeout: 10 min per iteration
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Average time, time/op
[info] # Benchmark: co.datadome.pub.scalaio2024.benchmarks.chapter3.MapBenchmark_Invoice_HalfHit_Small.get_VectorMap
[info] # Run progress: 90.00% complete, ETA 00:00:32
[info] # Fork: 1 of 1
[info] # Warmup Iteration 1: 1103835.062 us/op
[info] # Warmup Iteration 2: 16.739 us/op
[info] # Warmup Iteration 3: 12.476 us/op
[info] # Warmup Iteration 4: 12.437 us/op
[info] # Warmup Iteration 5: 12.212 us/op
[info] # Warmup Iteration 6: 12.464 us/op
[info] # Warmup Iteration 7: 12.219 us/op
[info] # Warmup Iteration 8: 12.350 us/op
[info] # Warmup Iteration 9: 12.221 us/op
[info] # Warmup Iteration 10: 12.376 us/op
[info] Iteration 1: 12.431 us/op
[info] Iteration 2: 12.377 us/op
[info] Iteration 3: 12.208 us/op
[info] Iteration 4: 12.281 us/op
[info] Iteration 5: 12.324 us/op
[info] Iteration 6: 12.387 us/op
[info] Iteration 7: 12.214 us/op
[info] Iteration 8: 12.323 us/op
[info] Iteration 9: 12.230 us/op
[info] Iteration 10: 12.323 us/op
[info] Iteration 11: 12.359 us/op
[info] Iteration 12: 12.277 us/op
[info] Iteration 13: 12.227 us/op
[info] Iteration 14: 12.167 us/op
[info] Iteration 15: 12.210 us/op
[info] Iteration 16: 12.405 us/op
[info] Iteration 17: 12.188 us/op
[info] Iteration 18: 12.239 us/op
[info] Iteration 19: 12.215 us/op
[info] Iteration 20: 12.241 us/op
[info] Result "co.datadome.pub.scalaio2024.benchmarks.chapter3.MapBenchmark_Invoice_HalfHit_Small.get_VectorMap":
[info] 12.281 ±(99.9%) 0.069 us/op [Average]
[info] (min, avg, max) = (12.167, 12.281, 12.431), stdev = 0.079
[info] CI (99.9%): [12.212, 12.350] (assumes normal distribution)
[info] # Run complete. Total time: 00:05:24
[info] REMEMBER: The numbers below are just data. To gain reusable insights, you need to follow up on
[info] why the numbers are the way they are. Use profilers (see -prof, -lprof), design factorial
[info] experiments, perform baseline and negative tests that provide experimental control, make sure
[info] the benchmarking environment is safe on JVM/OS/HW level, ask for reviews from the domain experts.
[info] Do not assume the numbers tell you what you want them to tell.
[info] NOTE: Current JVM experimentally supports Compiler Blackholes, and they are in use. Please exercise
[info] extra caution when trusting the results, look into the generated code to check the benchmark still
[info] works, and factor in a small probability of new VM bugs. Additionally, while comparisons between
[info] different JVMs are already problematic, the performance difference caused by different Blackhole
[info] modes can be very significant. Please make sure you use the consistent Blackhole mode for comparisons.
[info] Benchmark Mode Cnt Score Error Units
[info] MapBenchmark_Invoice_HalfHit_Large.apply_ArrayMap avgt 20 2.680 ± 0.019 us/op
[info] MapBenchmark_Invoice_HalfHit_Large.get_HashMap avgt 20 73.128 ± 0.760 us/op
[info] MapBenchmark_Invoice_HalfHit_Large.get_IntMap avgt 20 276.823 ± 30.387 us/op
[info] MapBenchmark_Invoice_HalfHit_Large.get_JavaHashMap avgt 20 12.713 ± 0.142 us/op
[info] MapBenchmark_Invoice_HalfHit_Large.get_VectorMap avgt 20 119.405 ± 9.608 us/op