Test name | Executions per second |
---|---|
.forEach | 10.7 Ops/sec |
for..of | 20.6 Ops/sec |
for..of (destructuring) | 16.0 Ops/sec |
.map | 10.8 Ops/sec |
.map (destructuring) | 5.8 Ops/sec |
.for (init array) | 16.0 Ops/sec |
.reduce | 19.4 Ops/sec |
.reduce (destructuring) | 20.2 Ops/sec |
for..of (reduce) | 23.2 Ops/sec |
for..of (reduce) (destructuring) | 23.2 Ops/sec |