Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 50664.2 Ops/sec |
Map.get, 10 000 elements | 1555540.5 Ops/sec |
Array.find, 1 000 000 elements | 127.2 Ops/sec |
Map.get, 1 000 000 elements | 1142770.8 Ops/sec |
Array to Map + Map.get, 1 lookup | 861.2 Ops/sec |
Array to Map + Map.get, 10 lookups | 934.9 Ops/sec |
Array to Map + Map.get, 100 lookups | 903.1 Ops/sec |
Array.find, 10 lookups | 9795.6 Ops/sec |
Array.find, 100 lookups | 796.5 Ops/sec |