Test name | Executions per second |
---|---|
.forEach | 9.8 Ops/sec |
for..of | 18.7 Ops/sec |
for..of (destructuring) | 14.9 Ops/sec |
.map | 18.6 Ops/sec |
.map (destructuring) | 18.5 Ops/sec |
.for (init array) | 20.5 Ops/sec |
.reduce | 20.0 Ops/sec |
.reduce (destructuring) | 20.2 Ops/sec |
for..of (reduce) | 20.1 Ops/sec |
for..of (reduce) (destructuring) | 21.8 Ops/sec |