Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 156656.8 Ops/sec |
Map.get, 10 000 elements | 5833964.5 Ops/sec |
Array.find, 1 000 000 elements | 1622.4 Ops/sec |
Map.get, 1 000 000 elements | 3345319.2 Ops/sec |
Array to Map + Map.get, 1 lookup | 2711.5 Ops/sec |
Array to Map + Map.get, 10 lookups | 2786.9 Ops/sec |
Array to Map + Map.get, 100 lookups | 2722.5 Ops/sec |
Array.find, 10 lookups | 16025.2 Ops/sec |
Array.find, 100 lookups | 1569.2 Ops/sec |