Test name | Executions per second |
---|---|
.forEach | 29.6 Ops/sec |
for..of | 52.9 Ops/sec |
for..of (destructuring) | 41.5 Ops/sec |
.map | 33.8 Ops/sec |
.map (destructuring) | 34.0 Ops/sec |
.for (init array) | 67.9 Ops/sec |
.reduce | 53.3 Ops/sec |
.reduce (destructuring) | 53.1 Ops/sec |
for..of (reduce) | 57.0 Ops/sec |
for..of (reduce) (destructuring) | 57.1 Ops/sec |