Test name | Executions per second |
---|---|
.forEach | 37.8 Ops/sec |
for..of | 42.8 Ops/sec |
for..of (destructuring) | 34.1 Ops/sec |
.map | 26.6 Ops/sec |
.map (destructuring) | 26.1 Ops/sec |
.for (init array) | 44.8 Ops/sec |
.reduce | 37.2 Ops/sec |
.reduce (destructuring) | 38.4 Ops/sec |
for..of (reduce) | 49.1 Ops/sec |
for..of (reduce) (destructuring) | 53.8 Ops/sec |