Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 187946.4 Ops/sec |
Map.get, 10 000 elements | 4870897.0 Ops/sec |
Array.find, 1 000 000 elements | 299.2 Ops/sec |
Map.get, 1 000 000 elements | 4856068.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 2128.2 Ops/sec |
Array to Map + Map.get, 10 lookups | 2214.0 Ops/sec |
Array to Map + Map.get, 100 lookups | 2149.8 Ops/sec |
Array.find, 10 lookups | 18550.4 Ops/sec |
Array.find, 100 lookups | 1887.9 Ops/sec |