Test name | Executions per second |
---|---|
.forEach | 38.8 Ops/sec |
for..of | 44.1 Ops/sec |
for..of (destructuring) | 33.9 Ops/sec |
.map | 25.4 Ops/sec |
.map (destructuring) | 25.6 Ops/sec |
.for (init array) | 44.2 Ops/sec |
.reduce | 36.8 Ops/sec |
.reduce (destructuring) | 38.2 Ops/sec |
for..of (reduce) | 50.2 Ops/sec |
for..of (reduce) (destructuring) | 49.4 Ops/sec |