Test name | Executions per second |
---|---|
.forEach | 18.1 Ops/sec |
for..of | 15.2 Ops/sec |
for..of (destructuring) | 14.2 Ops/sec |
.map | 11.3 Ops/sec |
.map (destructuring) | 12.2 Ops/sec |
.for (init array) | 4.7 Ops/sec |
.reduce | 14.3 Ops/sec |
.reduce (destructuring) | 15.4 Ops/sec |
for..of (reduce) | 15.7 Ops/sec |
for..of (reduce) (destructuring) | 16.3 Ops/sec |