Test name | Executions per second |
---|---|
.forEach | 18.7 Ops/sec |
for..of | 18.1 Ops/sec |
for..of (destructuring) | 15.7 Ops/sec |
.map | 15.7 Ops/sec |
.map (destructuring) | 13.9 Ops/sec |
.for (init array) | 21.8 Ops/sec |
.reduce | 19.1 Ops/sec |
.reduce (destructuring) | 19.8 Ops/sec |
for..of (reduce) | 20.3 Ops/sec |
for..of (reduce) (destructuring) | 19.8 Ops/sec |