Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 177617.0 Ops/sec |
Map.get, 10 000 elements | 3309546.2 Ops/sec |
Array.find, 1 000 000 elements | 315.2 Ops/sec |
Map.get, 1 000 000 elements | 3015528.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 2026.2 Ops/sec |
Array to Map + Map.get, 10 lookups | 2142.3 Ops/sec |
Array to Map + Map.get, 100 lookups | 2073.1 Ops/sec |
Array.find, 10 lookups | 23474.1 Ops/sec |
Array.find, 100 lookups | 2201.7 Ops/sec |