Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 32810.5 Ops/sec |
Map.get, 10 000 elements | 710315776.0 Ops/sec |
Array.find, 1 000 000 elements | 248.2 Ops/sec |
Map.get, 1 000 000 elements | 737320192.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 1108.6 Ops/sec |
Array to Map + Map.get, 10 lookups | 1134.5 Ops/sec |
Array to Map + Map.get, 100 lookups | 1136.6 Ops/sec |
Array.find, 10 lookups | 3330.1 Ops/sec |
Array.find, 100 lookups | 320.9 Ops/sec |