Test name | Executions per second |
---|---|
.forEach | 11.1 Ops/sec |
for..of | 15.6 Ops/sec |
for..of (destructuring) | 9.1 Ops/sec |
.map | 7.9 Ops/sec |
.map (destructuring) | 8.0 Ops/sec |
.for (init array) | 15.0 Ops/sec |
.reduce | 14.5 Ops/sec |
.reduce (destructuring) | 3.2 Ops/sec |
for..of (reduce) | 14.7 Ops/sec |
for..of (reduce) (destructuring) | 15.3 Ops/sec |