Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 94436.7 Ops/sec |
Map.get, 10 000 elements | 3661346.5 Ops/sec |
Array.find, 1 000 000 elements | 223.5 Ops/sec |
Map.get, 1 000 000 elements | 3630826.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 1517.4 Ops/sec |
Array to Map + Map.get, 10 lookups | 1649.4 Ops/sec |
Array to Map + Map.get, 100 lookups | 1623.9 Ops/sec |
Array.find, 10 lookups | 13092.5 Ops/sec |
Array.find, 100 lookups | 1160.6 Ops/sec |