Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 147797.6 Ops/sec |
Map.get, 10 000 elements | 5360873.0 Ops/sec |
Array.find, 1 000 000 elements | 1540.2 Ops/sec |
Map.get, 1 000 000 elements | 5299929.5 Ops/sec |
Array to Map + Map.get, 1 lookup | 2803.3 Ops/sec |
Array to Map + Map.get, 10 lookups | 2819.7 Ops/sec |
Array to Map + Map.get, 100 lookups | 2726.7 Ops/sec |
Array.find, 10 lookups | 14832.9 Ops/sec |
Array.find, 100 lookups | 1504.0 Ops/sec |