Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 148163.0 Ops/sec |
Map.get, 10 000 elements | 4665855.0 Ops/sec |
Array.find, 1 000 000 elements | 304.9 Ops/sec |
Map.get, 1 000 000 elements | 4847493.5 Ops/sec |
Array to Map + Map.get, 1 lookup | 2287.9 Ops/sec |
Array to Map + Map.get, 10 lookups | 2358.2 Ops/sec |
Array to Map + Map.get, 100 lookups | 2242.4 Ops/sec |
Array.find, 10 lookups | 17763.2 Ops/sec |
Array.find, 100 lookups | 1659.4 Ops/sec |