Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 142392.0 Ops/sec |
Map.get, 10 000 elements | 4929803.5 Ops/sec |
Array.find, 1 000 000 elements | 375.9 Ops/sec |
Map.get, 1 000 000 elements | 5171373.5 Ops/sec |
Array to Map + Map.get, 1 lookup | 2680.1 Ops/sec |
Array to Map + Map.get, 10 lookups | 2758.7 Ops/sec |
Array to Map + Map.get, 100 lookups | 2664.2 Ops/sec |
Array.find, 10 lookups | 18420.3 Ops/sec |
Array.find, 100 lookups | 1893.2 Ops/sec |