Test name | Executions per second |
---|---|
.forEach | 2.3 Ops/sec |
for..of | 2.3 Ops/sec |
for..of (destructuring) | 1.7 Ops/sec |
.map | 1.2 Ops/sec |
.map (destructuring) | 1.2 Ops/sec |
.for (init array) | 2.5 Ops/sec |
.reduce | 3.8 Ops/sec |
.reduce (destructuring) | 3.7 Ops/sec |
for..of (reduce) | 3.3 Ops/sec |
for..of (reduce) (destructuring) | 3.5 Ops/sec |