Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 135008.7 Ops/sec |
Map.get, 10 000 elements | 3235321.8 Ops/sec |
Array.find, 1 000 000 elements | 224.8 Ops/sec |
Map.get, 1 000 000 elements | 3256628.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 1573.5 Ops/sec |
Array to Map + Map.get, 10 lookups | 1638.2 Ops/sec |
Array to Map + Map.get, 100 lookups | 1672.3 Ops/sec |
Array.find, 10 lookups | 19232.1 Ops/sec |
Array.find, 100 lookups | 1760.9 Ops/sec |