Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 219660.2 Ops/sec |
Map.get, 10 000 elements | 3038975.8 Ops/sec |
Array.find, 1 000 000 elements | 264.8 Ops/sec |
Map.get, 1 000 000 elements | 3063978.8 Ops/sec |
Array to Map + Map.get, 1 lookup | 1808.6 Ops/sec |
Array to Map + Map.get, 10 lookups | 1839.0 Ops/sec |
Array to Map + Map.get, 100 lookups | 1763.9 Ops/sec |
Array.find, 10 lookups | 21623.3 Ops/sec |
Array.find, 100 lookups | 2158.4 Ops/sec |