Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 155675.0 Ops/sec |
Map.get, 10 000 elements | 1783537.9 Ops/sec |
Array.find, 1 000 000 elements | 155.5 Ops/sec |
Map.get, 1 000 000 elements | 1776409.1 Ops/sec |
Array to Map + Map.get, 1 lookup | 1472.4 Ops/sec |
Array to Map + Map.get, 10 lookups | 1503.6 Ops/sec |
Array to Map + Map.get, 100 lookups | 1456.0 Ops/sec |
Array.find, 10 lookups | 15447.5 Ops/sec |
Array.find, 100 lookups | 1574.8 Ops/sec |