Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 60807.3 Ops/sec |
Map.get, 10 000 elements | 2482087.2 Ops/sec |
Array.find, 1 000 000 elements | 168.5 Ops/sec |
Map.get, 1 000 000 elements | 2564042.2 Ops/sec |
Array to Map + Map.get, 1 lookup | 1378.5 Ops/sec |
Array to Map + Map.get, 10 lookups | 1507.4 Ops/sec |
Array to Map + Map.get, 100 lookups | 1490.6 Ops/sec |
Array.find, 10 lookups | 9257.3 Ops/sec |
Array.find, 100 lookups | 931.7 Ops/sec |