Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 156341.7 Ops/sec |
Map.get, 10 000 elements | 3158291.2 Ops/sec |
Array.find, 1 000 000 elements | 278.6 Ops/sec |
Map.get, 1 000 000 elements | 3115709.8 Ops/sec |
Array to Map + Map.get, 1 lookup | 1629.0 Ops/sec |
Array to Map + Map.get, 10 lookups | 1756.7 Ops/sec |
Array to Map + Map.get, 100 lookups | 1695.0 Ops/sec |
Array.find, 10 lookups | 18706.6 Ops/sec |
Array.find, 100 lookups | 1748.1 Ops/sec |