Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 164438.1 Ops/sec |
Map.get, 10 000 elements | 3484540.0 Ops/sec |
Array.find, 1 000 000 elements | 305.0 Ops/sec |
Map.get, 1 000 000 elements | 3475778.8 Ops/sec |
Array to Map + Map.get, 1 lookup | 2010.4 Ops/sec |
Array to Map + Map.get, 10 lookups | 2041.6 Ops/sec |
Array to Map + Map.get, 100 lookups | 2020.8 Ops/sec |
Array.find, 10 lookups | 22250.0 Ops/sec |
Array.find, 100 lookups | 2127.9 Ops/sec |