Test name | Executions per second |
---|---|
.forEach | 33.4 Ops/sec |
for..of | 32.9 Ops/sec |
for..of (destructuring) | 25.9 Ops/sec |
.map | 21.2 Ops/sec |
.map (destructuring) | 22.0 Ops/sec |
.for (init array) | 41.6 Ops/sec |
.reduce | 28.8 Ops/sec |
.reduce (destructuring) | 28.9 Ops/sec |
for..of (reduce) | 30.0 Ops/sec |
for..of (reduce) (destructuring) | 30.1 Ops/sec |