Test name | Executions per second |
---|---|
.forEach | 18.0 Ops/sec |
for..of | 20.6 Ops/sec |
for..of (destructuring) | 14.9 Ops/sec |
.map | 13.1 Ops/sec |
.map (destructuring) | 14.4 Ops/sec |
.for (init array) | 16.5 Ops/sec |
.reduce | 19.3 Ops/sec |
.reduce (destructuring) | 20.7 Ops/sec |
for..of (reduce) | 22.7 Ops/sec |
for..of (reduce) (destructuring) | 22.4 Ops/sec |