Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 152139.9 Ops/sec |
Map.get, 10 000 elements | 2384184.5 Ops/sec |
Array.find, 1 000 000 elements | 214.8 Ops/sec |
Map.get, 1 000 000 elements | 2425902.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 1651.4 Ops/sec |
Array to Map + Map.get, 10 lookups | 1668.6 Ops/sec |
Array to Map + Map.get, 100 lookups | 1635.7 Ops/sec |
Array.find, 10 lookups | 15435.6 Ops/sec |
Array.find, 100 lookups | 1524.8 Ops/sec |