Test name | Executions per second |
---|---|
.forEach | 16.5 Ops/sec |
for..of | 22.2 Ops/sec |
for..of (destructuring) | 19.9 Ops/sec |
.map | 16.5 Ops/sec |
.map (destructuring) | 19.4 Ops/sec |
.for (init array) | 29.1 Ops/sec |
.reduce | 21.7 Ops/sec |
.reduce (destructuring) | 22.9 Ops/sec |
for..of (reduce) | 30.0 Ops/sec |
for..of (reduce) (destructuring) | 25.0 Ops/sec |