Test name | Executions per second |
---|---|
.forEach | 20.1 Ops/sec |
for..of | 38.6 Ops/sec |
for..of (destructuring) | 25.8 Ops/sec |
.map | 23.2 Ops/sec |
.map (destructuring) | 23.5 Ops/sec |
.for (init array) | 47.4 Ops/sec |
.reduce | 36.3 Ops/sec |
.reduce (destructuring) | 36.8 Ops/sec |
for..of (reduce) | 36.9 Ops/sec |
for..of (reduce) (destructuring) | 39.5 Ops/sec |