Test name | Executions per second |
---|---|
.forEach | 44.1 Ops/sec |
for..of | 42.1 Ops/sec |
for..of (destructuring) | 36.1 Ops/sec |
.map | 40.2 Ops/sec |
.map (destructuring) | 39.7 Ops/sec |
.for (init array) | 40.9 Ops/sec |
.reduce | 44.0 Ops/sec |
.reduce (destructuring) | 43.3 Ops/sec |
for..of (reduce) | 39.7 Ops/sec |
for..of (reduce) (destructuring) | 38.7 Ops/sec |