Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 140106.3 Ops/sec |
Map.get, 10 000 elements | 4653955.5 Ops/sec |
Array.find, 1 000 000 elements | 324.4 Ops/sec |
Map.get, 1 000 000 elements | 4826947.5 Ops/sec |
Array to Map + Map.get, 1 lookup | 2338.9 Ops/sec |
Array to Map + Map.get, 10 lookups | 2376.7 Ops/sec |
Array to Map + Map.get, 100 lookups | 2356.5 Ops/sec |
Array.find, 10 lookups | 19134.2 Ops/sec |
Array.find, 100 lookups | 1666.4 Ops/sec |