Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 150513.9 Ops/sec |
Map.get, 10 000 elements | 84508848.0 Ops/sec |
Array.find, 1 000 000 elements | 305.4 Ops/sec |
Map.get, 1 000 000 elements | 80845056.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 1132.6 Ops/sec |
Array to Map + Map.get, 10 lookups | 1191.8 Ops/sec |
Array to Map + Map.get, 100 lookups | 1199.0 Ops/sec |
Array.find, 10 lookups | 22449.0 Ops/sec |
Array.find, 100 lookups | 1990.7 Ops/sec |