Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 11810.6 Ops/sec |
Map.get, 10 000 elements | 644239872.0 Ops/sec |
Array.find, 1 000 000 elements | 111.6 Ops/sec |
Map.get, 1 000 000 elements | 641452800.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 252.3 Ops/sec |
Array to Map + Map.get, 10 lookups | 441.3 Ops/sec |
Array to Map + Map.get, 100 lookups | 495.0 Ops/sec |
Array.find, 10 lookups | 1224.6 Ops/sec |
Array.find, 100 lookups | 114.5 Ops/sec |