Test name | Executions per second |
---|---|
.forEach | 25.4 Ops/sec |
for..of | 23.8 Ops/sec |
for..of (destructuring) | 22.5 Ops/sec |
.map | 21.1 Ops/sec |
.map (destructuring) | 22.3 Ops/sec |
.for (init array) | 22.3 Ops/sec |
.reduce | 20.6 Ops/sec |
.reduce (destructuring) | 23.5 Ops/sec |
for..of (reduce) | 19.8 Ops/sec |
for..of (reduce) (destructuring) | 23.2 Ops/sec |