Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 91723.1 Ops/sec |
Map.get, 10 000 elements | 1891100.9 Ops/sec |
Array.find, 1 000 000 elements | 108.3 Ops/sec |
Map.get, 1 000 000 elements | 1888313.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 1010.2 Ops/sec |
Array to Map + Map.get, 10 lookups | 1081.6 Ops/sec |
Array to Map + Map.get, 100 lookups | 1013.2 Ops/sec |
Array.find, 10 lookups | 9954.2 Ops/sec |
Array.find, 100 lookups | 905.5 Ops/sec |