Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 124528.6 Ops/sec |
Map.get, 10 000 elements | 2397698.0 Ops/sec |
Array.find, 1 000 000 elements | 260.9 Ops/sec |
Map.get, 1 000 000 elements | 1681706.8 Ops/sec |
Array to Map + Map.get, 1 lookup | 1393.3 Ops/sec |
Array to Map + Map.get, 10 lookups | 1477.9 Ops/sec |
Array to Map + Map.get, 100 lookups | 1413.3 Ops/sec |
Array.find, 10 lookups | 17495.1 Ops/sec |
Array.find, 100 lookups | 1643.2 Ops/sec |