Test name | Executions per second |
---|---|
.forEach | 15.8 Ops/sec |
for..of | 21.0 Ops/sec |
for..of (destructuring) | 14.6 Ops/sec |
.map | 16.3 Ops/sec |
.map (destructuring) | 17.8 Ops/sec |
.for (init array) | 16.5 Ops/sec |
.reduce | 16.0 Ops/sec |
.reduce (destructuring) | 20.4 Ops/sec |
for..of (reduce) | 19.0 Ops/sec |
for..of (reduce) (destructuring) | 18.4 Ops/sec |