Test name | Executions per second |
---|---|
.forEach | 15.5 Ops/sec |
for..of | 16.0 Ops/sec |
for..of (destructuring) | 12.4 Ops/sec |
.map | 11.4 Ops/sec |
.map (destructuring) | 11.5 Ops/sec |
.for (init array) | 15.2 Ops/sec |
.reduce | 14.8 Ops/sec |
.reduce (destructuring) | 14.7 Ops/sec |
for..of (reduce) | 16.6 Ops/sec |
for..of (reduce) (destructuring) | 16.4 Ops/sec |