Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 265553.1 Ops/sec |
Map.get, 10 000 elements | 3730074.0 Ops/sec |
Array.find, 1 000 000 elements | 407.1 Ops/sec |
Map.get, 1 000 000 elements | 3750041.5 Ops/sec |
Array to Map + Map.get, 1 lookup | 2090.2 Ops/sec |
Array to Map + Map.get, 10 lookups | 2098.6 Ops/sec |
Array to Map + Map.get, 100 lookups | 2035.6 Ops/sec |
Array.find, 10 lookups | 26532.5 Ops/sec |
Array.find, 100 lookups | 2632.0 Ops/sec |