Test name | Executions per second |
---|---|
.forEach | 26.6 Ops/sec |
for..of | 39.2 Ops/sec |
for..of (destructuring) | 29.3 Ops/sec |
.map | 20.1 Ops/sec |
.map (destructuring) | 20.3 Ops/sec |
.for (init array) | 37.8 Ops/sec |
.reduce | 30.9 Ops/sec |
.reduce (destructuring) | 30.9 Ops/sec |
for..of (reduce) | 39.9 Ops/sec |
for..of (reduce) (destructuring) | 40.2 Ops/sec |