Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 188474.7 Ops/sec |
Map.get, 10 000 elements | 4509215.0 Ops/sec |
Array.find, 1 000 000 elements | 296.4 Ops/sec |
Map.get, 1 000 000 elements | 4718881.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 2084.6 Ops/sec |
Array to Map + Map.get, 10 lookups | 2185.0 Ops/sec |
Array to Map + Map.get, 100 lookups | 2097.9 Ops/sec |
Array.find, 10 lookups | 18762.4 Ops/sec |
Array.find, 100 lookups | 1905.4 Ops/sec |