Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 142814.9 Ops/sec |
Map.get, 10 000 elements | 4575425.0 Ops/sec |
Array.find, 1 000 000 elements | 323.3 Ops/sec |
Map.get, 1 000 000 elements | 4511156.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 2285.4 Ops/sec |
Array to Map + Map.get, 10 lookups | 2394.6 Ops/sec |
Array to Map + Map.get, 100 lookups | 2354.9 Ops/sec |
Array.find, 10 lookups | 19012.5 Ops/sec |
Array.find, 100 lookups | 1799.5 Ops/sec |