Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 71223.6 Ops/sec |
Map.get, 10 000 elements | 2786772.8 Ops/sec |
Array.find, 1 000 000 elements | 172.9 Ops/sec |
Map.get, 1 000 000 elements | 2954709.8 Ops/sec |
Array to Map + Map.get, 1 lookup | 1209.8 Ops/sec |
Array to Map + Map.get, 10 lookups | 1336.9 Ops/sec |
Array to Map + Map.get, 100 lookups | 1321.0 Ops/sec |
Array.find, 10 lookups | 10490.5 Ops/sec |
Array.find, 100 lookups | 972.5 Ops/sec |