Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 58899.1 Ops/sec |
Map.get, 10 000 elements | 2333692.0 Ops/sec |
Array.find, 1 000 000 elements | 174.0 Ops/sec |
Map.get, 1 000 000 elements | 2415365.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 1374.0 Ops/sec |
Array to Map + Map.get, 10 lookups | 1501.3 Ops/sec |
Array to Map + Map.get, 100 lookups | 1456.6 Ops/sec |
Array.find, 10 lookups | 9496.2 Ops/sec |
Array.find, 100 lookups | 845.3 Ops/sec |