Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 135383.1 Ops/sec |
Map.get, 10 000 elements | 4630162.0 Ops/sec |
Array.find, 1 000 000 elements | 284.0 Ops/sec |
Map.get, 1 000 000 elements | 4857224.5 Ops/sec |
Array to Map + Map.get, 1 lookup | 2124.9 Ops/sec |
Array to Map + Map.get, 10 lookups | 2172.5 Ops/sec |
Array to Map + Map.get, 100 lookups | 2139.7 Ops/sec |
Array.find, 10 lookups | 18069.8 Ops/sec |
Array.find, 100 lookups | 1735.0 Ops/sec |