Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 128387.0 Ops/sec |
Map.get, 10 000 elements | 4367615.5 Ops/sec |
Array.find, 1 000 000 elements | 275.5 Ops/sec |
Map.get, 1 000 000 elements | 4653294.5 Ops/sec |
Array to Map + Map.get, 1 lookup | 1991.3 Ops/sec |
Array to Map + Map.get, 10 lookups | 2035.0 Ops/sec |
Array to Map + Map.get, 100 lookups | 2003.0 Ops/sec |
Array.find, 10 lookups | 16401.5 Ops/sec |
Array.find, 100 lookups | 1581.2 Ops/sec |