Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 35734.5 Ops/sec |
Map.get, 10 000 elements | 1402366.2 Ops/sec |
Array.find, 1 000 000 elements | 148.7 Ops/sec |
Map.get, 1 000 000 elements | 1130433.2 Ops/sec |
Array to Map + Map.get, 1 lookup | 1108.2 Ops/sec |
Array to Map + Map.get, 10 lookups | 1230.3 Ops/sec |
Array to Map + Map.get, 100 lookups | 1177.2 Ops/sec |
Array.find, 10 lookups | 7430.1 Ops/sec |
Array.find, 100 lookups | 726.3 Ops/sec |