Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 130786.8 Ops/sec |
Map.get, 10 000 elements | 4542182.0 Ops/sec |
Array.find, 1 000 000 elements | 283.9 Ops/sec |
Map.get, 1 000 000 elements | 4769280.5 Ops/sec |
Array to Map + Map.get, 1 lookup | 2057.6 Ops/sec |
Array to Map + Map.get, 10 lookups | 2124.5 Ops/sec |
Array to Map + Map.get, 100 lookups | 2006.0 Ops/sec |
Array.find, 10 lookups | 17240.0 Ops/sec |
Array.find, 100 lookups | 1742.8 Ops/sec |