Test name | Executions per second |
---|---|
.forEach | 6.8 Ops/sec |
for..of | 13.2 Ops/sec |
for..of (destructuring) | 11.1 Ops/sec |
.map | 9.4 Ops/sec |
.map (destructuring) | 10.2 Ops/sec |
.for (init array) | 15.9 Ops/sec |
.reduce | 13.6 Ops/sec |
.reduce (destructuring) | 13.3 Ops/sec |
for..of (reduce) | 14.4 Ops/sec |
for..of (reduce) (destructuring) | 14.5 Ops/sec |