Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 72862.4 Ops/sec |
Map.get, 10 000 elements | 2227259.5 Ops/sec |
Array.find, 1 000 000 elements | 175.9 Ops/sec |
Map.get, 1 000 000 elements | 2165003.5 Ops/sec |
Array to Map + Map.get, 1 lookup | 717.0 Ops/sec |
Array to Map + Map.get, 10 lookups | 623.5 Ops/sec |
Array to Map + Map.get, 100 lookups | 629.9 Ops/sec |
Array.find, 10 lookups | 10836.5 Ops/sec |
Array.find, 100 lookups | 980.6 Ops/sec |