Test name | Executions per second |
---|---|
.forEach | 22.0 Ops/sec |
for..of | 20.6 Ops/sec |
for..of (destructuring) | 17.9 Ops/sec |
.map | 21.2 Ops/sec |
.map (destructuring) | 20.0 Ops/sec |
.for (init array) | 22.0 Ops/sec |
.reduce | 24.5 Ops/sec |
.reduce (destructuring) | 22.7 Ops/sec |
for..of (reduce) | 22.1 Ops/sec |
for..of (reduce) (destructuring) | 20.8 Ops/sec |