Test name | Executions per second |
---|---|
.forEach | 35.0 Ops/sec |
for..of | 45.3 Ops/sec |
for..of (destructuring) | 34.8 Ops/sec |
.map | 27.5 Ops/sec |
.map (destructuring) | 27.5 Ops/sec |
.for (init array) | 58.6 Ops/sec |
.reduce | 44.0 Ops/sec |
.reduce (destructuring) | 43.1 Ops/sec |
for..of (reduce) | 45.4 Ops/sec |
for..of (reduce) (destructuring) | 45.3 Ops/sec |