Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 29450.7 Ops/sec |
Map.get, 10 000 elements | 1701900.0 Ops/sec |
Array.find, 1 000 000 elements | 88.9 Ops/sec |
Map.get, 1 000 000 elements | 1686751.9 Ops/sec |
Array to Map + Map.get, 1 lookup | 789.0 Ops/sec |
Array to Map + Map.get, 10 lookups | 879.6 Ops/sec |
Array to Map + Map.get, 100 lookups | 806.3 Ops/sec |
Array.find, 10 lookups | 5386.0 Ops/sec |
Array.find, 100 lookups | 425.4 Ops/sec |