Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 159387.1 Ops/sec |
Map.get, 10 000 elements | 5236898.0 Ops/sec |
Array.find, 1 000 000 elements | 348.8 Ops/sec |
Map.get, 1 000 000 elements | 5214497.5 Ops/sec |
Array to Map + Map.get, 1 lookup | 2156.6 Ops/sec |
Array to Map + Map.get, 10 lookups | 2233.1 Ops/sec |
Array to Map + Map.get, 100 lookups | 2207.2 Ops/sec |
Array.find, 10 lookups | 19664.7 Ops/sec |
Array.find, 100 lookups | 2040.9 Ops/sec |