Test name | Executions per second |
---|---|
.forEach | 11.5 Ops/sec |
for..of | 12.5 Ops/sec |
for..of (destructuring) | 9.0 Ops/sec |
.map | 7.9 Ops/sec |
.map (destructuring) | 8.2 Ops/sec |
.for (init array) | 13.9 Ops/sec |
.reduce | 12.5 Ops/sec |
.reduce (destructuring) | 11.5 Ops/sec |
for..of (reduce) | 12.0 Ops/sec |
for..of (reduce) (destructuring) | 13.0 Ops/sec |