Test name | Executions per second |
---|---|
.forEach | 9.2 Ops/sec |
for..of | 19.2 Ops/sec |
for..of (destructuring) | 13.6 Ops/sec |
.map | 10.8 Ops/sec |
.map (destructuring) | 10.7 Ops/sec |
.for (init array) | 17.4 Ops/sec |
.reduce | 14.7 Ops/sec |
.reduce (destructuring) | 10.7 Ops/sec |
for..of (reduce) | 14.2 Ops/sec |
for..of (reduce) (destructuring) | 14.6 Ops/sec |