Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 129036.4 Ops/sec |
Map.get, 10 000 elements | 2998538.8 Ops/sec |
Array.find, 1 000 000 elements | 296.1 Ops/sec |
Map.get, 1 000 000 elements | 2101917.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 1940.9 Ops/sec |
Array to Map + Map.get, 10 lookups | 1973.4 Ops/sec |
Array to Map + Map.get, 100 lookups | 1898.1 Ops/sec |
Array.find, 10 lookups | 16785.0 Ops/sec |
Array.find, 100 lookups | 1601.6 Ops/sec |