Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 176331.5 Ops/sec |
Map.get, 10 000 elements | 4582502.5 Ops/sec |
Array.find, 1 000 000 elements | 253.6 Ops/sec |
Map.get, 1 000 000 elements | 4715069.5 Ops/sec |
Array to Map + Map.get, 1 lookup | 2046.8 Ops/sec |
Array to Map + Map.get, 10 lookups | 2105.2 Ops/sec |
Array to Map + Map.get, 100 lookups | 2113.8 Ops/sec |
Array.find, 10 lookups | 17601.6 Ops/sec |
Array.find, 100 lookups | 1768.4 Ops/sec |