Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 123920.0 Ops/sec |
Map.get, 10 000 elements | 4655991.5 Ops/sec |
Array.find, 1 000 000 elements | 291.0 Ops/sec |
Map.get, 1 000 000 elements | 4865435.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 2036.5 Ops/sec |
Array to Map + Map.get, 10 lookups | 2191.2 Ops/sec |
Array to Map + Map.get, 100 lookups | 2134.4 Ops/sec |
Array.find, 10 lookups | 16750.7 Ops/sec |
Array.find, 100 lookups | 1798.6 Ops/sec |