collections: companion code for the How to Sort a HashMap by Value (and Key) post

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KqJyCidz3ZgRyHABv2GVJh
This commit is contained in:
Claude
2026-09-30 19:10:13 +00:00
parent 366579f478
commit 381f119308
22 changed files with 509 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
Benchmark (size) Mode Cnt Score Error Units
SortingBenchmark.heapTopN 1000 avgt 10 10.344 ± 2.238 us/op
SortingBenchmark.heapTopN 100000 avgt 10 642.111 ± 92.327 us/op
SortingBenchmark.sortAllIntoLinkedHashMap 1000 avgt 10 121.877 ± 11.882 us/op
SortingBenchmark.sortAllIntoLinkedHashMap 100000 avgt 10 46582.889 ± 9003.854 us/op
SortingBenchmark.sortAllThenLimit 1000 avgt 10 55.609 ± 5.247 us/op
SortingBenchmark.sortAllThenLimit 100000 avgt 10 35128.268 ± 10045.080 us/op