Test name | Executions per second |
---|---|
.forEach | 35.8 Ops/sec |
for..of | 32.6 Ops/sec |
for..of (destructuring) | 22.6 Ops/sec |
.map | 21.2 Ops/sec |
.map (destructuring) | 20.5 Ops/sec |
.for (init array) | 48.1 Ops/sec |
.reduce | 34.4 Ops/sec |
.reduce (destructuring) | 31.5 Ops/sec |
for..of (reduce) | 35.2 Ops/sec |
for..of (reduce) (destructuring) | 32.7 Ops/sec |