Test name | Executions per second |
---|---|
.forEach | 29.5 Ops/sec |
for..of | 41.8 Ops/sec |
for..of (destructuring) | 34.5 Ops/sec |
.map | 36.2 Ops/sec |
.map (destructuring) | 23.5 Ops/sec |
.for (init array) | 32.1 Ops/sec |
.reduce | 32.3 Ops/sec |
.reduce (destructuring) | 41.9 Ops/sec |
for..of (reduce) | 33.3 Ops/sec |
for..of (reduce) (destructuring) | 31.0 Ops/sec |