Test name | Executions per second |
---|---|
.forEach | 2.1 Ops/sec |
for..of | 3.8 Ops/sec |
for..of (destructuring) | 1.5 Ops/sec |
.map | 1.7 Ops/sec |
.map (destructuring) | 1.5 Ops/sec |
.for (init array) | 2.9 Ops/sec |
.reduce | 1.9 Ops/sec |
.reduce (destructuring) | 2.0 Ops/sec |
for..of (reduce) | 2.5 Ops/sec |
for..of (reduce) (destructuring) | 3.0 Ops/sec |