Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 31060.8 Ops/sec |
Map.get, 10 000 elements | 1144063.2 Ops/sec |
Array.find, 1 000 000 elements | 118.8 Ops/sec |
Map.get, 1 000 000 elements | 1246773.1 Ops/sec |
Array to Map + Map.get, 1 lookup | 995.8 Ops/sec |
Array to Map + Map.get, 10 lookups | 985.6 Ops/sec |
Array to Map + Map.get, 100 lookups | 1042.7 Ops/sec |
Array.find, 10 lookups | 5889.8 Ops/sec |
Array.find, 100 lookups | 587.8 Ops/sec |