Test name | Executions per second |
---|---|
.forEach | 20.0 Ops/sec |
for..of | 27.4 Ops/sec |
for..of (destructuring) | 30.7 Ops/sec |
.map | 31.0 Ops/sec |
.map (destructuring) | 31.2 Ops/sec |
.for (init array) | 36.6 Ops/sec |
.reduce | 22.2 Ops/sec |
.reduce (destructuring) | 19.0 Ops/sec |
for..of (reduce) | 21.0 Ops/sec |
for..of (reduce) (destructuring) | 21.2 Ops/sec |