Test name | Executions per second |
---|---|
.forEach | 4.1 Ops/sec |
for..of | 5.0 Ops/sec |
for..of (destructuring) | 5.0 Ops/sec |
.map | 5.1 Ops/sec |
.map (destructuring) | 4.6 Ops/sec |
.for (init array) | 5.9 Ops/sec |
.reduce | 4.8 Ops/sec |
.reduce (destructuring) | 4.4 Ops/sec |
for..of (reduce) | 4.6 Ops/sec |
for..of (reduce) (destructuring) | 5.3 Ops/sec |