Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 189036.6 Ops/sec |
Map.get, 10 000 elements | 4181947.0 Ops/sec |
Array.find, 1 000 000 elements | 301.0 Ops/sec |
Map.get, 1 000 000 elements | 4717708.5 Ops/sec |
Array to Map + Map.get, 1 lookup | 2121.2 Ops/sec |
Array to Map + Map.get, 10 lookups | 2160.8 Ops/sec |
Array to Map + Map.get, 100 lookups | 2103.3 Ops/sec |
Array.find, 10 lookups | 18749.2 Ops/sec |
Array.find, 100 lookups | 1904.5 Ops/sec |