Test name | Executions per second |
---|---|
.forEach | 16.8 Ops/sec |
for..of | 22.2 Ops/sec |
for..of (destructuring) | 19.5 Ops/sec |
.map | 13.7 Ops/sec |
.map (destructuring) | 12.0 Ops/sec |
.for (init array) | 22.3 Ops/sec |
.reduce | 21.2 Ops/sec |
.reduce (destructuring) | 21.2 Ops/sec |
for..of (reduce) | 28.0 Ops/sec |
for..of (reduce) (destructuring) | 26.5 Ops/sec |