Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 133820.6 Ops/sec |
Map.get, 10 000 elements | 4535009.5 Ops/sec |
Array.find, 1 000 000 elements | 1193.4 Ops/sec |
Map.get, 1 000 000 elements | 3728651.2 Ops/sec |
Array to Map + Map.get, 1 lookup | 2347.2 Ops/sec |
Array to Map + Map.get, 10 lookups | 1936.5 Ops/sec |
Array to Map + Map.get, 100 lookups | 1520.5 Ops/sec |
Array.find, 10 lookups | 10288.8 Ops/sec |
Array.find, 100 lookups | 1226.9 Ops/sec |