Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 161803.1 Ops/sec |
Map.get, 10 000 elements | 5897992.5 Ops/sec |
Array.find, 1 000 000 elements | 425.1 Ops/sec |
Map.get, 1 000 000 elements | 6210309.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 3024.5 Ops/sec |
Array to Map + Map.get, 10 lookups | 3112.2 Ops/sec |
Array to Map + Map.get, 100 lookups | 3002.6 Ops/sec |
Array.find, 10 lookups | 20604.8 Ops/sec |
Array.find, 100 lookups | 1930.9 Ops/sec |