Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 106362.7 Ops/sec |
Map.get, 10 000 elements | 4113705.0 Ops/sec |
Array.find, 1 000 000 elements | 269.7 Ops/sec |
Map.get, 1 000 000 elements | 1803943.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 2051.7 Ops/sec |
Array to Map + Map.get, 10 lookups | 2201.9 Ops/sec |
Array to Map + Map.get, 100 lookups | 2146.3 Ops/sec |
Array.find, 10 lookups | 16058.8 Ops/sec |
Array.find, 100 lookups | 1552.1 Ops/sec |