Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 22917.5 Ops/sec |
Map.get, 10 000 elements | 758060.1 Ops/sec |
Array.find, 1 000 000 elements | 58.6 Ops/sec |
Map.get, 1 000 000 elements | 760540.7 Ops/sec |
Array to Map + Map.get, 1 lookup | 455.4 Ops/sec |
Array to Map + Map.get, 10 lookups | 543.9 Ops/sec |
Array to Map + Map.get, 100 lookups | 533.4 Ops/sec |
Array.find, 10 lookups | 4235.5 Ops/sec |
Array.find, 100 lookups | 352.1 Ops/sec |