Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 120968.0 Ops/sec |
Map.get, 10 000 elements | 4639674.5 Ops/sec |
Array.find, 1 000 000 elements | 223.0 Ops/sec |
Map.get, 1 000 000 elements | 4890103.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 2129.6 Ops/sec |
Array to Map + Map.get, 10 lookups | 2210.7 Ops/sec |
Array to Map + Map.get, 100 lookups | 2200.7 Ops/sec |
Array.find, 10 lookups | 15287.1 Ops/sec |
Array.find, 100 lookups | 1465.3 Ops/sec |