Test name | Executions per second |
---|---|
.forEach | 8.7 Ops/sec |
for..of | 32.0 Ops/sec |
for..of (destructuring) | 31.1 Ops/sec |
.map | 20.3 Ops/sec |
.map (destructuring) | 20.0 Ops/sec |
.for (init array) | 41.4 Ops/sec |
.reduce | 32.0 Ops/sec |
.reduce (destructuring) | 33.6 Ops/sec |
for..of (reduce) | 40.9 Ops/sec |
for..of (reduce) (destructuring) | 40.7 Ops/sec |