Test name | Executions per second |
---|---|
.forEach | 22.7 Ops/sec |
for..of | 18.8 Ops/sec |
for..of (destructuring) | 14.2 Ops/sec |
.map | 17.0 Ops/sec |
.map (destructuring) | 15.0 Ops/sec |
.for (init array) | 16.5 Ops/sec |
.reduce | 16.9 Ops/sec |
.reduce (destructuring) | 16.7 Ops/sec |
for..of (reduce) | 16.0 Ops/sec |
for..of (reduce) (destructuring) | 15.6 Ops/sec |