Test name | Executions per second |
---|---|
.forEach | 13.8 Ops/sec |
for..of | 12.9 Ops/sec |
for..of (destructuring) | 10.9 Ops/sec |
.map | 11.9 Ops/sec |
.map (destructuring) | 14.6 Ops/sec |
.for (init array) | 12.4 Ops/sec |
.reduce | 15.1 Ops/sec |
.reduce (destructuring) | 14.6 Ops/sec |
for..of (reduce) | 12.0 Ops/sec |
for..of (reduce) (destructuring) | 13.5 Ops/sec |