Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 206049.7 Ops/sec |
Map.get, 10 000 elements | 5050619.5 Ops/sec |
Array.find, 1 000 000 elements | 388.9 Ops/sec |
Map.get, 1 000 000 elements | 5284926.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 2301.9 Ops/sec |
Array to Map + Map.get, 10 lookups | 2356.5 Ops/sec |
Array to Map + Map.get, 100 lookups | 2274.7 Ops/sec |
Array.find, 10 lookups | 24920.0 Ops/sec |
Array.find, 100 lookups | 2569.5 Ops/sec |