Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 128103.2 Ops/sec |
Map.get, 10 000 elements | 4592140.5 Ops/sec |
Array.find, 1 000 000 elements | 298.3 Ops/sec |
Map.get, 1 000 000 elements | 4633754.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 1860.8 Ops/sec |
Array to Map + Map.get, 10 lookups | 1905.0 Ops/sec |
Array to Map + Map.get, 100 lookups | 1880.6 Ops/sec |
Array.find, 10 lookups | 17878.6 Ops/sec |
Array.find, 100 lookups | 1851.7 Ops/sec |