Test name | Executions per second |
---|---|
.forEach | 5.0 Ops/sec |
for..of | 3.7 Ops/sec |
for..of (destructuring) | 4.4 Ops/sec |
.map | 3.5 Ops/sec |
.map (destructuring) | 3.5 Ops/sec |
.for (init array) | 4.9 Ops/sec |
.reduce | 5.3 Ops/sec |
.reduce (destructuring) | 4.7 Ops/sec |
for..of (reduce) | 5.7 Ops/sec |
for..of (reduce) (destructuring) | 6.2 Ops/sec |