Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 24895.3 Ops/sec |
Map.get, 10 000 elements | 1051281.4 Ops/sec |
Array.find, 1 000 000 elements | 83.2 Ops/sec |
Map.get, 1 000 000 elements | 1045980.9 Ops/sec |
Array to Map + Map.get, 1 lookup | 535.1 Ops/sec |
Array to Map + Map.get, 10 lookups | 654.2 Ops/sec |
Array to Map + Map.get, 100 lookups | 640.1 Ops/sec |
Array.find, 10 lookups | 3949.4 Ops/sec |
Array.find, 100 lookups | 273.9 Ops/sec |