Test name | Executions per second |
---|---|
.forEach | 34.7 Ops/sec |
for..of | 32.5 Ops/sec |
for..of (destructuring) | 21.1 Ops/sec |
.map | 20.1 Ops/sec |
.map (destructuring) | 20.0 Ops/sec |
.for (init array) | 41.8 Ops/sec |
.reduce | 36.1 Ops/sec |
.reduce (destructuring) | 34.9 Ops/sec |
for..of (reduce) | 34.8 Ops/sec |
for..of (reduce) (destructuring) | 32.1 Ops/sec |