Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 175078.7 Ops/sec |
Map.get, 10 000 elements | 5464724.5 Ops/sec |
Array.find, 1 000 000 elements | 605.8 Ops/sec |
Map.get, 1 000 000 elements | 5712210.5 Ops/sec |
Array to Map + Map.get, 1 lookup | 3040.5 Ops/sec |
Array to Map + Map.get, 10 lookups | 3137.3 Ops/sec |
Array to Map + Map.get, 100 lookups | 3011.9 Ops/sec |
Array.find, 10 lookups | 21832.0 Ops/sec |
Array.find, 100 lookups | 2240.1 Ops/sec |