Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 124475.9 Ops/sec |
Map.get, 10 000 elements | 3954485.0 Ops/sec |
Array.find, 1 000 000 elements | 276.6 Ops/sec |
Map.get, 1 000 000 elements | 4098033.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 2012.6 Ops/sec |
Array to Map + Map.get, 10 lookups | 2058.5 Ops/sec |
Array to Map + Map.get, 100 lookups | 2132.9 Ops/sec |
Array.find, 10 lookups | 16169.0 Ops/sec |
Array.find, 100 lookups | 1560.9 Ops/sec |