Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 155731.0 Ops/sec |
Map.get, 10 000 elements | 5887360.5 Ops/sec |
Array.find, 1 000 000 elements | 1416.9 Ops/sec |
Map.get, 1 000 000 elements | 5682428.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 2966.1 Ops/sec |
Array to Map + Map.get, 10 lookups | 2963.9 Ops/sec |
Array to Map + Map.get, 100 lookups | 2854.2 Ops/sec |
Array.find, 10 lookups | 14401.4 Ops/sec |
Array.find, 100 lookups | 1451.5 Ops/sec |