Test name | Executions per second |
---|---|
.forEach | 20.4 Ops/sec |
for..of | 53.1 Ops/sec |
for..of (destructuring) | 36.5 Ops/sec |
.map | 27.1 Ops/sec |
.map (destructuring) | 27.1 Ops/sec |
.for (init array) | 49.6 Ops/sec |
.reduce | 39.6 Ops/sec |
.reduce (destructuring) | 40.9 Ops/sec |
for..of (reduce) | 52.6 Ops/sec |
for..of (reduce) (destructuring) | 53.8 Ops/sec |