Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 185502.9 Ops/sec |
Map.get, 10 000 elements | 4926678.5 Ops/sec |
Array.find, 1 000 000 elements | 293.3 Ops/sec |
Map.get, 1 000 000 elements | 4967549.5 Ops/sec |
Array to Map + Map.get, 1 lookup | 2123.5 Ops/sec |
Array to Map + Map.get, 10 lookups | 2197.0 Ops/sec |
Array to Map + Map.get, 100 lookups | 2113.5 Ops/sec |
Array.find, 10 lookups | 18337.0 Ops/sec |
Array.find, 100 lookups | 1865.9 Ops/sec |