Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 125370.0 Ops/sec |
Map.get, 10 000 elements | 4422942.5 Ops/sec |
Array.find, 1 000 000 elements | 288.9 Ops/sec |
Map.get, 1 000 000 elements | 4586466.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 1987.0 Ops/sec |
Array to Map + Map.get, 10 lookups | 2102.2 Ops/sec |
Array to Map + Map.get, 100 lookups | 2030.2 Ops/sec |
Array.find, 10 lookups | 17586.3 Ops/sec |
Array.find, 100 lookups | 1764.1 Ops/sec |