Test name | Executions per second |
---|---|
.forEach | 16.2 Ops/sec |
for..of | 13.9 Ops/sec |
for..of (destructuring) | 14.7 Ops/sec |
.map | 11.9 Ops/sec |
.map (destructuring) | 11.2 Ops/sec |
.for (init array) | 18.7 Ops/sec |
.reduce | 16.8 Ops/sec |
.reduce (destructuring) | 16.2 Ops/sec |
for..of (reduce) | 18.0 Ops/sec |
for..of (reduce) (destructuring) | 16.7 Ops/sec |