Test name | Executions per second |
---|---|
.forEach | 25.5 Ops/sec |
for..of | 49.6 Ops/sec |
for..of (destructuring) | 41.2 Ops/sec |
.map | 29.1 Ops/sec |
.map (destructuring) | 27.9 Ops/sec |
.for (init array) | 49.7 Ops/sec |
.reduce | 41.2 Ops/sec |
.reduce (destructuring) | 39.5 Ops/sec |
for..of (reduce) | 52.7 Ops/sec |
for..of (reduce) (destructuring) | 53.9 Ops/sec |