Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 67760.7 Ops/sec |
Map.get, 10 000 elements | 1188943.2 Ops/sec |
Array.find, 1 000 000 elements | 102.9 Ops/sec |
Map.get, 1 000 000 elements | 638439.2 Ops/sec |
Array to Map + Map.get, 1 lookup | 494.7 Ops/sec |
Array to Map + Map.get, 10 lookups | 458.1 Ops/sec |
Array to Map + Map.get, 100 lookups | 453.3 Ops/sec |
Array.find, 10 lookups | 831.3 Ops/sec |
Array.find, 100 lookups | 158.9 Ops/sec |