Tests:
-
Map
-
Map (with hashCode)
-
Map (with hashCodeStr)
-
Object
-
Object (with hashCode)
-
Object (with hashCodeStr)
Rendered benchmark preparation results:
Latest run results:
Run details: (Test run date:
one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Chrome 133 on Windows
View result in a separate tab
Map (with hashCode)
148.1M/s
Map (with hashCodeStr)
140.0M/s
Object (with hashCodeStr)
68.6M/s
Object (with hashCode)
20.5M/s
View exact numbers
| Test name |
Executions per second |
|
✓
Map
|
148,241,744 Ops/sec |
|
Map (with hashCode)
|
148,072,736 Ops/sec |
|
Map (with hashCodeStr)
|
139,957,984 Ops/sec |
|
Object (with hashCodeStr)
|
68,560,368 Ops/sec |
|
Object
|
64,492,540 Ops/sec |
|
Object (with hashCode)
|
20,516,392 Ops/sec |
Do you really want to delete benchmark?