Test name | Executions per second |
---|---|
.forEach | 27.0 Ops/sec |
for..of | 30.1 Ops/sec |
for..of (destructuring) | 22.7 Ops/sec |
.map | 17.2 Ops/sec |
.map (destructuring) | 18.8 Ops/sec |
.for (init array) | 41.7 Ops/sec |
.reduce | 31.1 Ops/sec |
.reduce (destructuring) | 30.9 Ops/sec |
for..of (reduce) | 33.6 Ops/sec |
for..of (reduce) (destructuring) | 30.5 Ops/sec |