Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 126328.9 Ops/sec |
Map.get, 10 000 elements | 4696914.5 Ops/sec |
Array.find, 1 000 000 elements | 312.6 Ops/sec |
Map.get, 1 000 000 elements | 4943620.5 Ops/sec |
Array to Map + Map.get, 1 lookup | 2269.8 Ops/sec |
Array to Map + Map.get, 10 lookups | 2333.5 Ops/sec |
Array to Map + Map.get, 100 lookups | 2284.2 Ops/sec |
Array.find, 10 lookups | 17077.2 Ops/sec |
Array.find, 100 lookups | 1648.9 Ops/sec |