Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 48169.8 Ops/sec |
Map.get, 10 000 elements | 3942697.5 Ops/sec |
Array.find, 1 000 000 elements | 316.8 Ops/sec |
Map.get, 1 000 000 elements | 4584716.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 2244.4 Ops/sec |
Array to Map + Map.get, 10 lookups | 2444.9 Ops/sec |
Array to Map + Map.get, 100 lookups | 2281.9 Ops/sec |
Array.find, 10 lookups | 17540.1 Ops/sec |
Array.find, 100 lookups | 1751.3 Ops/sec |