Test name | Executions per second |
---|---|
.forEach | 28.6 Ops/sec |
for..of | 46.2 Ops/sec |
for..of (destructuring) | 37.6 Ops/sec |
.map | 26.1 Ops/sec |
.map (destructuring) | 25.5 Ops/sec |
.for (init array) | 52.0 Ops/sec |
.reduce | 38.2 Ops/sec |
.reduce (destructuring) | 36.0 Ops/sec |
for..of (reduce) | 9.0 Ops/sec |
for..of (reduce) (destructuring) | 9.6 Ops/sec |