Test name | Executions per second |
---|---|
.forEach | 20.7 Ops/sec |
for..of | 32.6 Ops/sec |
for..of (destructuring) | 19.4 Ops/sec |
.map | 16.4 Ops/sec |
.map (destructuring) | 16.6 Ops/sec |
.for (init array) | 26.3 Ops/sec |
.reduce | 23.1 Ops/sec |
.reduce (destructuring) | 22.9 Ops/sec |
for..of (reduce) | 29.6 Ops/sec |
for..of (reduce) (destructuring) | 29.1 Ops/sec |