Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 195820.7 Ops/sec |
Map.get, 10 000 elements | 3796569.5 Ops/sec |
Array.find, 1 000 000 elements | 336.7 Ops/sec |
Map.get, 1 000 000 elements | 4010821.5 Ops/sec |
Array to Map + Map.get, 1 lookup | 2088.7 Ops/sec |
Array to Map + Map.get, 10 lookups | 2173.4 Ops/sec |
Array to Map + Map.get, 100 lookups | 2151.7 Ops/sec |
Array.find, 10 lookups | 23691.9 Ops/sec |
Array.find, 100 lookups | 2377.4 Ops/sec |