Test name | Executions per second |
---|---|
.forEach | 14.3 Ops/sec |
for..of | 48.7 Ops/sec |
for..of (destructuring) | 27.8 Ops/sec |
.map | 24.9 Ops/sec |
.map (destructuring) | 24.7 Ops/sec |
.for (init array) | 50.0 Ops/sec |
.reduce | 39.3 Ops/sec |
.reduce (destructuring) | 28.1 Ops/sec |
for..of (reduce) | 12.5 Ops/sec |
for..of (reduce) (destructuring) | 39.2 Ops/sec |