Test name | Executions per second |
---|---|
.forEach | 10.4 Ops/sec |
for..of | 14.0 Ops/sec |
for..of (destructuring) | 6.4 Ops/sec |
.map | 2.8 Ops/sec |
.map (destructuring) | 5.9 Ops/sec |
.for (init array) | 7.0 Ops/sec |
.reduce | 6.4 Ops/sec |
.reduce (destructuring) | 6.1 Ops/sec |
for..of (reduce) | 6.7 Ops/sec |
for..of (reduce) (destructuring) | 6.5 Ops/sec |