Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 163210.9 Ops/sec |
Map.get, 10 000 elements | 5816361.0 Ops/sec |
Array.find, 1 000 000 elements | 417.7 Ops/sec |
Map.get, 1 000 000 elements | 6094594.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 2865.2 Ops/sec |
Array to Map + Map.get, 10 lookups | 3047.1 Ops/sec |
Array to Map + Map.get, 100 lookups | 2893.4 Ops/sec |
Array.find, 10 lookups | 20957.9 Ops/sec |
Array.find, 100 lookups | 2026.1 Ops/sec |