Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 12469648.0 Ops/sec |
Map.get, 10 000 elements | 279199232.0 Ops/sec |
Array.find, 1 000 000 elements | 2394706.5 Ops/sec |
Map.get, 1 000 000 elements | 136371296.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 481056.6 Ops/sec |
Array to Map + Map.get, 10 lookups | 476867.5 Ops/sec |
Array to Map + Map.get, 100 lookups | 451091.1 Ops/sec |
Array.find, 10 lookups | 1391412.5 Ops/sec |
Array.find, 100 lookups | 60305.1 Ops/sec |