Test name | Executions per second |
---|---|
.forEach | 3.1 Ops/sec |
for..of | 2.8 Ops/sec |
for..of (destructuring) | 1.6 Ops/sec |
.map | 1.7 Ops/sec |
.map (destructuring) | 1.8 Ops/sec |
.for (init array) | 4.4 Ops/sec |
.reduce | 2.9 Ops/sec |
.reduce (destructuring) | 2.5 Ops/sec |
for..of (reduce) | 4.7 Ops/sec |
for..of (reduce) (destructuring) | 3.9 Ops/sec |