Test name | Executions per second |
---|---|
.forEach | 6.9 Ops/sec |
for..of | 13.1 Ops/sec |
for..of (destructuring) | 10.6 Ops/sec |
.map | 9.0 Ops/sec |
.map (destructuring) | 8.4 Ops/sec |
.for (init array) | 14.6 Ops/sec |
.reduce | 12.5 Ops/sec |
.reduce (destructuring) | 12.6 Ops/sec |
for..of (reduce) | 15.6 Ops/sec |
for..of (reduce) (destructuring) | 13.6 Ops/sec |