Test name | Executions per second |
---|---|
.forEach | 21.8 Ops/sec |
for..of | 23.4 Ops/sec |
for..of (destructuring) | 10.9 Ops/sec |
.map | 12.5 Ops/sec |
.map (destructuring) | 13.1 Ops/sec |
.for (init array) | 26.0 Ops/sec |
.reduce | 19.2 Ops/sec |
.reduce (destructuring) | 20.3 Ops/sec |
for..of (reduce) | 19.2 Ops/sec |
for..of (reduce) (destructuring) | 19.5 Ops/sec |