Test name | Executions per second |
---|---|
.forEach | 30.3 Ops/sec |
for..of | 36.1 Ops/sec |
for..of (destructuring) | 26.0 Ops/sec |
.map | 22.3 Ops/sec |
.map (destructuring) | 22.3 Ops/sec |
.for (init array) | 34.9 Ops/sec |
.reduce | 28.6 Ops/sec |
.reduce (destructuring) | 30.6 Ops/sec |
for..of (reduce) | 37.7 Ops/sec |
for..of (reduce) (destructuring) | 36.3 Ops/sec |