Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 144208.7 Ops/sec |
Map.get, 10 000 elements | 5105460.0 Ops/sec |
Array.find, 1 000 000 elements | 1438.0 Ops/sec |
Map.get, 1 000 000 elements | 5122764.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 2666.7 Ops/sec |
Array to Map + Map.get, 10 lookups | 2722.9 Ops/sec |
Array to Map + Map.get, 100 lookups | 2622.9 Ops/sec |
Array.find, 10 lookups | 14312.9 Ops/sec |
Array.find, 100 lookups | 1428.8 Ops/sec |