Test name | Executions per second |
---|---|
.forEach | 6.3 Ops/sec |
for..of | 21.8 Ops/sec |
for..of (destructuring) | 19.1 Ops/sec |
.map | 18.8 Ops/sec |
.map (destructuring) | 17.9 Ops/sec |
.for (init array) | 26.9 Ops/sec |
.reduce | 26.5 Ops/sec |
.reduce (destructuring) | 25.2 Ops/sec |
for..of (reduce) | 26.9 Ops/sec |
for..of (reduce) (destructuring) | 28.3 Ops/sec |