Test name | Executions per second |
---|---|
.forEach | 3.1 Ops/sec |
for..of | 3.0 Ops/sec |
for..of (destructuring) | 2.9 Ops/sec |
.map | 3.4 Ops/sec |
.map (destructuring) | 3.1 Ops/sec |
.for (init array) | 3.5 Ops/sec |
.reduce | 3.9 Ops/sec |
.reduce (destructuring) | 3.5 Ops/sec |
for..of (reduce) | 3.8 Ops/sec |
for..of (reduce) (destructuring) | 3.4 Ops/sec |