Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 51149.2 Ops/sec |
Map.get, 10 000 elements | 1949022.9 Ops/sec |
Array.find, 1 000 000 elements | 150.8 Ops/sec |
Map.get, 1 000 000 elements | 1791074.1 Ops/sec |
Array to Map + Map.get, 1 lookup | 864.1 Ops/sec |
Array to Map + Map.get, 10 lookups | 934.4 Ops/sec |
Array to Map + Map.get, 100 lookups | 922.5 Ops/sec |
Array.find, 10 lookups | 9104.8 Ops/sec |
Array.find, 100 lookups | 807.9 Ops/sec |