Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 169974.9 Ops/sec |
Map.get, 10 000 elements | 4492328.0 Ops/sec |
Array.find, 1 000 000 elements | 281.3 Ops/sec |
Map.get, 1 000 000 elements | 4430202.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 1965.2 Ops/sec |
Array to Map + Map.get, 10 lookups | 2121.2 Ops/sec |
Array to Map + Map.get, 100 lookups | 2017.2 Ops/sec |
Array.find, 10 lookups | 16583.1 Ops/sec |
Array.find, 100 lookups | 1701.5 Ops/sec |