Test name | Executions per second |
---|---|
.forEach | 1.3 Ops/sec |
for..of | 8.5 Ops/sec |
for..of (destructuring) | 11.8 Ops/sec |
.map | 8.0 Ops/sec |
.map (destructuring) | 6.9 Ops/sec |
.for (init array) | 14.4 Ops/sec |
.reduce | 11.3 Ops/sec |
.reduce (destructuring) | 13.4 Ops/sec |
for..of (reduce) | 15.9 Ops/sec |
for..of (reduce) (destructuring) | 15.3 Ops/sec |