Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 98814.2 Ops/sec |
Map.get, 10 000 elements | 2556259.0 Ops/sec |
Array.find, 1 000 000 elements | 193.0 Ops/sec |
Map.get, 1 000 000 elements | 2734017.5 Ops/sec |
Array to Map + Map.get, 1 lookup | 1675.4 Ops/sec |
Array to Map + Map.get, 10 lookups | 1777.2 Ops/sec |
Array to Map + Map.get, 100 lookups | 1692.2 Ops/sec |
Array.find, 10 lookups | 13973.5 Ops/sec |
Array.find, 100 lookups | 1406.3 Ops/sec |