Test name | Executions per second |
---|---|
.forEach | 14.6 Ops/sec |
for..of | 14.5 Ops/sec |
for..of (destructuring) | 12.4 Ops/sec |
.map | 10.7 Ops/sec |
.map (destructuring) | 9.5 Ops/sec |
.for (init array) | 17.1 Ops/sec |
.reduce | 13.5 Ops/sec |
.reduce (destructuring) | 15.4 Ops/sec |
for..of (reduce) | 12.9 Ops/sec |
for..of (reduce) (destructuring) | 15.5 Ops/sec |