Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 124490.8 Ops/sec |
Map.get, 10 000 elements | 4448340.0 Ops/sec |
Array.find, 1 000 000 elements | 284.8 Ops/sec |
Map.get, 1 000 000 elements | 4699849.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 2008.2 Ops/sec |
Array to Map + Map.get, 10 lookups | 2110.8 Ops/sec |
Array to Map + Map.get, 100 lookups | 2078.9 Ops/sec |
Array.find, 10 lookups | 16676.6 Ops/sec |
Array.find, 100 lookups | 1596.1 Ops/sec |