Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 170914.6 Ops/sec |
Map.get, 10 000 elements | 5023420.5 Ops/sec |
Array.find, 1 000 000 elements | 333.3 Ops/sec |
Map.get, 1 000 000 elements | 5041580.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 2374.0 Ops/sec |
Array to Map + Map.get, 10 lookups | 2515.2 Ops/sec |
Array to Map + Map.get, 100 lookups | 2434.5 Ops/sec |
Array.find, 10 lookups | 19711.9 Ops/sec |
Array.find, 100 lookups | 2022.7 Ops/sec |