Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 61549.9 Ops/sec |
Map.get, 10 000 elements | 2411964.0 Ops/sec |
Array.find, 1 000 000 elements | 178.4 Ops/sec |
Map.get, 1 000 000 elements | 2494584.5 Ops/sec |
Array to Map + Map.get, 1 lookup | 1431.5 Ops/sec |
Array to Map + Map.get, 10 lookups | 1543.4 Ops/sec |
Array to Map + Map.get, 100 lookups | 1526.4 Ops/sec |
Array.find, 10 lookups | 9586.3 Ops/sec |
Array.find, 100 lookups | 904.4 Ops/sec |