Test name | Executions per second |
---|---|
.forEach | 33.6 Ops/sec |
for..of | 42.9 Ops/sec |
for..of (destructuring) | 36.0 Ops/sec |
.map | 23.3 Ops/sec |
.map (destructuring) | 22.8 Ops/sec |
.for (init array) | 41.2 Ops/sec |
.reduce | 34.2 Ops/sec |
.reduce (destructuring) | 33.3 Ops/sec |
for..of (reduce) | 44.6 Ops/sec |
for..of (reduce) (destructuring) | 43.9 Ops/sec |