Test name | Executions per second |
---|---|
.forEach | 12.6 Ops/sec |
for..of | 16.3 Ops/sec |
for..of (destructuring) | 13.6 Ops/sec |
.map | 12.2 Ops/sec |
.map (destructuring) | 13.0 Ops/sec |
.for (init array) | 20.4 Ops/sec |
.reduce | 16.9 Ops/sec |
.reduce (destructuring) | 19.5 Ops/sec |
for..of (reduce) | 18.4 Ops/sec |
for..of (reduce) (destructuring) | 17.5 Ops/sec |