Test name | Executions per second |
---|---|
.forEach | 21.1 Ops/sec |
for..of | 19.7 Ops/sec |
for..of (destructuring) | 13.9 Ops/sec |
.map | 11.0 Ops/sec |
.map (destructuring) | 10.3 Ops/sec |
.for (init array) | 20.0 Ops/sec |
.reduce | 18.5 Ops/sec |
.reduce (destructuring) | 19.7 Ops/sec |
for..of (reduce) | 20.0 Ops/sec |
for..of (reduce) (destructuring) | 10.3 Ops/sec |