Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 142263.5 Ops/sec |
Map.get, 10 000 elements | 7001045.5 Ops/sec |
Array.find, 1 000 000 elements | 277.0 Ops/sec |
Map.get, 1 000 000 elements | 7704985.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 2094.0 Ops/sec |
Array to Map + Map.get, 10 lookups | 2236.3 Ops/sec |
Array to Map + Map.get, 100 lookups | 2230.9 Ops/sec |
Array.find, 10 lookups | 18101.1 Ops/sec |
Array.find, 100 lookups | 1744.0 Ops/sec |