Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 181334.8 Ops/sec |
Map.get, 10 000 elements | 4605251.5 Ops/sec |
Array.find, 1 000 000 elements | 270.5 Ops/sec |
Map.get, 1 000 000 elements | 4593282.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 2125.2 Ops/sec |
Array to Map + Map.get, 10 lookups | 2116.6 Ops/sec |
Array to Map + Map.get, 100 lookups | 1994.7 Ops/sec |
Array.find, 10 lookups | 18293.4 Ops/sec |
Array.find, 100 lookups | 1818.2 Ops/sec |