Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 199452.6 Ops/sec |
Map.get, 10 000 elements | 9655322.0 Ops/sec |
Array.find, 1 000 000 elements | 406.6 Ops/sec |
Map.get, 1 000 000 elements | 10558562.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 3140.2 Ops/sec |
Array to Map + Map.get, 10 lookups | 3216.6 Ops/sec |
Array to Map + Map.get, 100 lookups | 3202.5 Ops/sec |
Array.find, 10 lookups | 25248.1 Ops/sec |
Array.find, 100 lookups | 2631.9 Ops/sec |