Test name | Executions per second |
---|---|
.forEach | 4.0 Ops/sec |
for..of | 6.2 Ops/sec |
for..of (destructuring) | 4.5 Ops/sec |
.map | 4.0 Ops/sec |
.map (destructuring) | 3.4 Ops/sec |
.for (init array) | 6.0 Ops/sec |
.reduce | 4.3 Ops/sec |
.reduce (destructuring) | 3.7 Ops/sec |
for..of (reduce) | 5.8 Ops/sec |
for..of (reduce) (destructuring) | 5.4 Ops/sec |