Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 119357.4 Ops/sec |
Map.get, 10 000 elements | 4321721.0 Ops/sec |
Array.find, 1 000 000 elements | 213.1 Ops/sec |
Map.get, 1 000 000 elements | 4540730.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 2087.6 Ops/sec |
Array to Map + Map.get, 10 lookups | 2187.7 Ops/sec |
Array to Map + Map.get, 100 lookups | 2084.9 Ops/sec |
Array.find, 10 lookups | 16251.9 Ops/sec |
Array.find, 100 lookups | 1732.4 Ops/sec |