Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 136399.1 Ops/sec |
Map.get, 10 000 elements | 4614855.5 Ops/sec |
Array.find, 1 000 000 elements | 264.9 Ops/sec |
Map.get, 1 000 000 elements | 4863390.5 Ops/sec |
Array to Map + Map.get, 1 lookup | 1735.7 Ops/sec |
Array to Map + Map.get, 10 lookups | 1839.8 Ops/sec |
Array to Map + Map.get, 100 lookups | 1802.6 Ops/sec |
Array.find, 10 lookups | 18395.4 Ops/sec |
Array.find, 100 lookups | 1753.9 Ops/sec |