Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 134217.9 Ops/sec |
Map.get, 10 000 elements | 4359104.5 Ops/sec |
Array.find, 1 000 000 elements | 290.8 Ops/sec |
Map.get, 1 000 000 elements | 4518681.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 1909.9 Ops/sec |
Array to Map + Map.get, 10 lookups | 2065.1 Ops/sec |
Array to Map + Map.get, 100 lookups | 2036.2 Ops/sec |
Array.find, 10 lookups | 16287.2 Ops/sec |
Array.find, 100 lookups | 1618.1 Ops/sec |