Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 44475.5 Ops/sec |
Map.get, 10 000 elements | 1439349.4 Ops/sec |
Array.find, 1 000 000 elements | 139.7 Ops/sec |
Map.get, 1 000 000 elements | 1248378.4 Ops/sec |
Array to Map + Map.get, 1 lookup | 750.2 Ops/sec |
Array to Map + Map.get, 10 lookups | 1069.3 Ops/sec |
Array to Map + Map.get, 100 lookups | 957.5 Ops/sec |
Array.find, 10 lookups | 5969.2 Ops/sec |
Array.find, 100 lookups | 605.8 Ops/sec |