Test name | Executions per second |
---|---|
.forEach | 34.5 Ops/sec |
for..of | 33.9 Ops/sec |
for..of (destructuring) | 31.3 Ops/sec |
.map | 34.4 Ops/sec |
.map (destructuring) | 32.8 Ops/sec |
.for (init array) | 35.3 Ops/sec |
.reduce | 35.8 Ops/sec |
.reduce (destructuring) | 36.1 Ops/sec |
for..of (reduce) | 36.4 Ops/sec |
for..of (reduce) (destructuring) | 34.7 Ops/sec |