Test name | Executions per second |
---|---|
.forEach | 12.3 Ops/sec |
for..of | 13.5 Ops/sec |
for..of (destructuring) | 10.3 Ops/sec |
.map | 7.8 Ops/sec |
.map (destructuring) | 7.7 Ops/sec |
.for (init array) | 12.3 Ops/sec |
.reduce | 12.0 Ops/sec |
.reduce (destructuring) | 12.8 Ops/sec |
for..of (reduce) | 12.3 Ops/sec |
for..of (reduce) (destructuring) | 13.6 Ops/sec |