Test name | Executions per second |
---|---|
.forEach | 7.9 Ops/sec |
for..of | 13.0 Ops/sec |
for..of (destructuring) | 10.9 Ops/sec |
.map | 8.4 Ops/sec |
.map (destructuring) | 8.9 Ops/sec |
.for (init array) | 13.0 Ops/sec |
.reduce | 11.2 Ops/sec |
.reduce (destructuring) | 11.3 Ops/sec |
for..of (reduce) | 13.3 Ops/sec |
for..of (reduce) (destructuring) | 12.6 Ops/sec |