Test name | Executions per second |
---|---|
.forEach | 24.9 Ops/sec |
for..of | 36.0 Ops/sec |
for..of (destructuring) | 25.8 Ops/sec |
.map | 22.0 Ops/sec |
.map (destructuring) | 22.5 Ops/sec |
.for (init array) | 38.0 Ops/sec |
.reduce | 32.5 Ops/sec |
.reduce (destructuring) | 30.3 Ops/sec |
for..of (reduce) | 36.4 Ops/sec |
for..of (reduce) (destructuring) | 36.3 Ops/sec |