Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 60444.0 Ops/sec |
Map.get, 10 000 elements | 2079931.6 Ops/sec |
Array.find, 1 000 000 elements | 184.1 Ops/sec |
Map.get, 1 000 000 elements | 1328971.1 Ops/sec |
Array to Map + Map.get, 1 lookup | 1309.3 Ops/sec |
Array to Map + Map.get, 10 lookups | 1436.4 Ops/sec |
Array to Map + Map.get, 100 lookups | 1459.1 Ops/sec |
Array.find, 10 lookups | 10283.2 Ops/sec |
Array.find, 100 lookups | 946.6 Ops/sec |