Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 21545.5 Ops/sec |
Map.get, 10 000 elements | 543168.4 Ops/sec |
Array.find, 1 000 000 elements | 57.7 Ops/sec |
Map.get, 1 000 000 elements | 549134.8 Ops/sec |
Array to Map + Map.get, 1 lookup | 355.3 Ops/sec |
Array to Map + Map.get, 10 lookups | 400.6 Ops/sec |
Array to Map + Map.get, 100 lookups | 374.1 Ops/sec |
Array.find, 10 lookups | 2782.4 Ops/sec |
Array.find, 100 lookups | 271.9 Ops/sec |