Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 146219.9 Ops/sec |
Map.get, 10 000 elements | 4837706.5 Ops/sec |
Array.find, 1 000 000 elements | 1302.5 Ops/sec |
Map.get, 1 000 000 elements | 4550983.5 Ops/sec |
Array to Map + Map.get, 1 lookup | 2485.7 Ops/sec |
Array to Map + Map.get, 10 lookups | 1791.0 Ops/sec |
Array to Map + Map.get, 100 lookups | 1826.5 Ops/sec |
Array.find, 10 lookups | 7709.9 Ops/sec |
Array.find, 100 lookups | 214.7 Ops/sec |