Test name | Executions per second |
---|---|
.forEach | 11.2 Ops/sec |
for..of | 6.0 Ops/sec |
for..of (destructuring) | 6.6 Ops/sec |
.map | 8.2 Ops/sec |
.map (destructuring) | 8.6 Ops/sec |
.for (init array) | 12.3 Ops/sec |
.reduce | 8.7 Ops/sec |
.reduce (destructuring) | 13.8 Ops/sec |
for..of (reduce) | 14.9 Ops/sec |
for..of (reduce) (destructuring) | 15.5 Ops/sec |