Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 138629.9 Ops/sec |
Map.get, 10 000 elements | 4714558.5 Ops/sec |
Array.find, 1 000 000 elements | 286.8 Ops/sec |
Map.get, 1 000 000 elements | 4796441.5 Ops/sec |
Array to Map + Map.get, 1 lookup | 1855.3 Ops/sec |
Array to Map + Map.get, 10 lookups | 1926.1 Ops/sec |
Array to Map + Map.get, 100 lookups | 1887.6 Ops/sec |
Array.find, 10 lookups | 18499.6 Ops/sec |
Array.find, 100 lookups | 1673.7 Ops/sec |