Test name | Executions per second |
---|---|
.forEach | 7.3 Ops/sec |
for..of | 11.0 Ops/sec |
for..of (destructuring) | 8.1 Ops/sec |
.map | 6.2 Ops/sec |
.map (destructuring) | 5.9 Ops/sec |
.for (init array) | 12.0 Ops/sec |
.reduce | 15.6 Ops/sec |
.reduce (destructuring) | 15.1 Ops/sec |
for..of (reduce) | 13.4 Ops/sec |
for..of (reduce) (destructuring) | 15.0 Ops/sec |