Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 212031.2 Ops/sec |
Map.get, 10 000 elements | 3498739.2 Ops/sec |
Array.find, 1 000 000 elements | 324.5 Ops/sec |
Map.get, 1 000 000 elements | 2660227.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 2094.3 Ops/sec |
Array to Map + Map.get, 10 lookups | 2211.6 Ops/sec |
Array to Map + Map.get, 100 lookups | 2146.3 Ops/sec |
Array.find, 10 lookups | 25941.8 Ops/sec |
Array.find, 100 lookups | 2605.4 Ops/sec |