Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 14536.5 Ops/sec |
Map.get, 10 000 elements | 727861.2 Ops/sec |
Array.find, 1 000 000 elements | 59.6 Ops/sec |
Map.get, 1 000 000 elements | 722293.2 Ops/sec |
Array to Map + Map.get, 1 lookup | 507.1 Ops/sec |
Array to Map + Map.get, 10 lookups | 457.3 Ops/sec |
Array to Map + Map.get, 100 lookups | 454.1 Ops/sec |
Array.find, 10 lookups | 2404.5 Ops/sec |
Array.find, 100 lookups | 218.7 Ops/sec |