Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 166385.7 Ops/sec |
Map.get, 10 000 elements | 3549990.5 Ops/sec |
Array.find, 1 000 000 elements | 346.6 Ops/sec |
Map.get, 1 000 000 elements | 3713163.5 Ops/sec |
Array to Map + Map.get, 1 lookup | 2113.5 Ops/sec |
Array to Map + Map.get, 10 lookups | 1962.7 Ops/sec |
Array to Map + Map.get, 100 lookups | 2122.1 Ops/sec |
Array.find, 10 lookups | 20298.5 Ops/sec |
Array.find, 100 lookups | 1885.8 Ops/sec |