Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 138473.0 Ops/sec |
Map.get, 10 000 elements | 4537707.0 Ops/sec |
Array.find, 1 000 000 elements | 263.3 Ops/sec |
Map.get, 1 000 000 elements | 4771470.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 1969.9 Ops/sec |
Array to Map + Map.get, 10 lookups | 2070.2 Ops/sec |
Array to Map + Map.get, 100 lookups | 2047.0 Ops/sec |
Array.find, 10 lookups | 17941.7 Ops/sec |
Array.find, 100 lookups | 1865.3 Ops/sec |