Test name | Executions per second |
---|---|
.forEach | 10.6 Ops/sec |
for..of | 18.1 Ops/sec |
for..of (destructuring) | 13.8 Ops/sec |
.map | 11.8 Ops/sec |
.map (destructuring) | 11.0 Ops/sec |
.for (init array) | 23.5 Ops/sec |
.reduce | 18.0 Ops/sec |
.reduce (destructuring) | 18.0 Ops/sec |
for..of (reduce) | 18.2 Ops/sec |
for..of (reduce) (destructuring) | 18.8 Ops/sec |