Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 30237.7 Ops/sec |
Map.get, 10 000 elements | 1405882.8 Ops/sec |
Array.find, 1 000 000 elements | 117.6 Ops/sec |
Map.get, 1 000 000 elements | 1429506.9 Ops/sec |
Array to Map + Map.get, 1 lookup | 782.7 Ops/sec |
Array to Map + Map.get, 10 lookups | 964.5 Ops/sec |
Array to Map + Map.get, 100 lookups | 957.3 Ops/sec |
Array.find, 10 lookups | 5763.8 Ops/sec |
Array.find, 100 lookups | 506.6 Ops/sec |