Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 164235.2 Ops/sec |
Map.get, 10 000 elements | 5927644.0 Ops/sec |
Array.find, 1 000 000 elements | 336.5 Ops/sec |
Map.get, 1 000 000 elements | 6549190.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 2987.9 Ops/sec |
Array to Map + Map.get, 10 lookups | 3056.7 Ops/sec |
Array to Map + Map.get, 100 lookups | 2959.8 Ops/sec |
Array.find, 10 lookups | 21382.2 Ops/sec |
Array.find, 100 lookups | 2167.3 Ops/sec |