Test name | Executions per second |
---|---|
.forEach | 4.9 Ops/sec |
for..of | 13.7 Ops/sec |
for..of (destructuring) | 9.9 Ops/sec |
.map | 8.7 Ops/sec |
.map (destructuring) | 9.5 Ops/sec |
.for (init array) | 16.7 Ops/sec |
.reduce | 13.6 Ops/sec |
.reduce (destructuring) | 14.3 Ops/sec |
for..of (reduce) | 14.4 Ops/sec |
for..of (reduce) (destructuring) | 16.3 Ops/sec |