Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 164128.6 Ops/sec |
Map.get, 10 000 elements | 5168674.5 Ops/sec |
Array.find, 1 000 000 elements | 350.2 Ops/sec |
Map.get, 1 000 000 elements | 5435576.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 2362.5 Ops/sec |
Array to Map + Map.get, 10 lookups | 2509.0 Ops/sec |
Array to Map + Map.get, 100 lookups | 2429.4 Ops/sec |
Array.find, 10 lookups | 19366.7 Ops/sec |
Array.find, 100 lookups | 2002.3 Ops/sec |