Test name | Executions per second |
---|---|
.forEach | 3.7 Ops/sec |
for..of | 2.7 Ops/sec |
for..of (destructuring) | 3.7 Ops/sec |
.map | 6.0 Ops/sec |
.map (destructuring) | 3.4 Ops/sec |
.for (init array) | 4.3 Ops/sec |
.reduce | 6.2 Ops/sec |
.reduce (destructuring) | 2.8 Ops/sec |
for..of (reduce) | 3.3 Ops/sec |
for..of (reduce) (destructuring) | 12.0 Ops/sec |