Test name | Executions per second |
---|---|
.forEach | 5.4 Ops/sec |
for..of | 6.7 Ops/sec |
for..of (destructuring) | 6.1 Ops/sec |
.map | 5.3 Ops/sec |
.map (destructuring) | 6.2 Ops/sec |
.for (init array) | 5.6 Ops/sec |
.reduce | 6.4 Ops/sec |
.reduce (destructuring) | 6.6 Ops/sec |
for..of (reduce) | 7.6 Ops/sec |
for..of (reduce) (destructuring) | 7.7 Ops/sec |