Test name | Executions per second |
---|---|
.forEach | 28.9 Ops/sec |
for..of | 38.9 Ops/sec |
for..of (destructuring) | 26.7 Ops/sec |
.map | 24.9 Ops/sec |
.map (destructuring) | 25.1 Ops/sec |
.for (init array) | 49.7 Ops/sec |
.reduce | 36.8 Ops/sec |
.reduce (destructuring) | 36.6 Ops/sec |
for..of (reduce) | 38.5 Ops/sec |
for..of (reduce) (destructuring) | 37.4 Ops/sec |