Test name | Executions per second |
---|---|
.forEach | 15.3 Ops/sec |
for..of | 16.5 Ops/sec |
for..of (destructuring) | 15.2 Ops/sec |
.map | 10.8 Ops/sec |
.map (destructuring) | 10.6 Ops/sec |
.for (init array) | 18.1 Ops/sec |
.reduce | 15.8 Ops/sec |
.reduce (destructuring) | 16.3 Ops/sec |
for..of (reduce) | 20.4 Ops/sec |
for..of (reduce) (destructuring) | 16.4 Ops/sec |