Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 252995.5 Ops/sec |
Map.get, 10 000 elements | 5219304.0 Ops/sec |
Array.find, 1 000 000 elements | 474.2 Ops/sec |
Map.get, 1 000 000 elements | 4352433.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 2751.7 Ops/sec |
Array to Map + Map.get, 10 lookups | 2740.9 Ops/sec |
Array to Map + Map.get, 100 lookups | 2692.0 Ops/sec |
Array.find, 10 lookups | 30881.6 Ops/sec |
Array.find, 100 lookups | 2876.9 Ops/sec |