Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 159588.2 Ops/sec |
Map.get, 10 000 elements | 4488441.5 Ops/sec |
Array.find, 1 000 000 elements | 320.2 Ops/sec |
Map.get, 1 000 000 elements | 4697936.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 2392.6 Ops/sec |
Array to Map + Map.get, 10 lookups | 2531.1 Ops/sec |
Array to Map + Map.get, 100 lookups | 2353.0 Ops/sec |
Array.find, 10 lookups | 19687.6 Ops/sec |
Array.find, 100 lookups | 1861.2 Ops/sec |