Test name | Executions per second |
---|---|
.forEach | 16.0 Ops/sec |
for..of | 18.2 Ops/sec |
for..of (destructuring) | 14.1 Ops/sec |
.map | 13.8 Ops/sec |
.map (destructuring) | 12.7 Ops/sec |
.for (init array) | 13.5 Ops/sec |
.reduce | 15.4 Ops/sec |
.reduce (destructuring) | 14.4 Ops/sec |
for..of (reduce) | 15.7 Ops/sec |
for..of (reduce) (destructuring) | 15.0 Ops/sec |