Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 126625.5 Ops/sec |
Map.get, 10 000 elements | 4443970.5 Ops/sec |
Array.find, 1 000 000 elements | 329.0 Ops/sec |
Map.get, 1 000 000 elements | 4610939.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 2420.1 Ops/sec |
Array to Map + Map.get, 10 lookups | 2493.9 Ops/sec |
Array to Map + Map.get, 100 lookups | 2403.2 Ops/sec |
Array.find, 10 lookups | 15462.7 Ops/sec |
Array.find, 100 lookups | 1504.9 Ops/sec |