Test name | Executions per second |
---|---|
.forEach | 10.8 Ops/sec |
for..of | 16.0 Ops/sec |
for..of (destructuring) | 9.6 Ops/sec |
.map | 10.8 Ops/sec |
.map (destructuring) | 9.4 Ops/sec |
.for (init array) | 15.8 Ops/sec |
.reduce | 14.5 Ops/sec |
.reduce (destructuring) | 16.1 Ops/sec |
for..of (reduce) | 17.7 Ops/sec |
for..of (reduce) (destructuring) | 17.9 Ops/sec |