Test name | Executions per second |
---|---|
.forEach | 24.9 Ops/sec |
for..of | 23.2 Ops/sec |
for..of (destructuring) | 16.0 Ops/sec |
.map | 13.2 Ops/sec |
.map (destructuring) | 13.5 Ops/sec |
.for (init array) | 27.4 Ops/sec |
.reduce | 25.3 Ops/sec |
.reduce (destructuring) | 23.5 Ops/sec |
for..of (reduce) | 24.3 Ops/sec |
for..of (reduce) (destructuring) | 32.3 Ops/sec |