Test name | Executions per second |
---|---|
.forEach | 33.4 Ops/sec |
for..of | 28.2 Ops/sec |
for..of (destructuring) | 29.0 Ops/sec |
.map | 22.2 Ops/sec |
.map (destructuring) | 22.4 Ops/sec |
.for (init array) | 42.3 Ops/sec |
.reduce | 36.3 Ops/sec |
.reduce (destructuring) | 36.3 Ops/sec |
for..of (reduce) | 34.1 Ops/sec |
for..of (reduce) (destructuring) | 38.0 Ops/sec |