Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 112258.8 Ops/sec |
Map.get, 10 000 elements | 3625023.0 Ops/sec |
Array.find, 1 000 000 elements | 947.4 Ops/sec |
Map.get, 1 000 000 elements | 2109497.8 Ops/sec |
Array to Map + Map.get, 1 lookup | 1989.7 Ops/sec |
Array to Map + Map.get, 10 lookups | 2021.1 Ops/sec |
Array to Map + Map.get, 100 lookups | 1892.5 Ops/sec |
Array.find, 10 lookups | 10453.7 Ops/sec |
Array.find, 100 lookups | 640.6 Ops/sec |