Test name | Executions per second |
---|---|
.forEach | 26.7 Ops/sec |
for..of | 22.1 Ops/sec |
for..of (destructuring) | 16.9 Ops/sec |
.map | 13.9 Ops/sec |
.map (destructuring) | 12.4 Ops/sec |
.for (init array) | 21.4 Ops/sec |
.reduce | 20.3 Ops/sec |
.reduce (destructuring) | 19.0 Ops/sec |
for..of (reduce) | 18.5 Ops/sec |
for..of (reduce) (destructuring) | 21.8 Ops/sec |