Test name | Executions per second |
---|---|
.forEach | 39.6 Ops/sec |
for..of | 39.7 Ops/sec |
for..of (destructuring) | 32.6 Ops/sec |
.map | 27.2 Ops/sec |
.map (destructuring) | 27.9 Ops/sec |
.for (init array) | 50.9 Ops/sec |
.reduce | 40.2 Ops/sec |
.reduce (destructuring) | 40.7 Ops/sec |
for..of (reduce) | 41.9 Ops/sec |
for..of (reduce) (destructuring) | 40.9 Ops/sec |