Test name | Executions per second |
---|---|
.forEach | 18.5 Ops/sec |
for..of | 24.0 Ops/sec |
for..of (destructuring) | 13.0 Ops/sec |
.map | 15.6 Ops/sec |
.map (destructuring) | 15.3 Ops/sec |
.for (init array) | 29.8 Ops/sec |
.reduce | 23.0 Ops/sec |
.reduce (destructuring) | 23.0 Ops/sec |
for..of (reduce) | 24.1 Ops/sec |
for..of (reduce) (destructuring) | 24.7 Ops/sec |