reduce with spread vs flatMap vs reduce with push vs for...of| Test case name | Result |
|---|---|
| reduce with spread | |
| flatMap | |
| reduce with push | |
| for...of |
| Test name | Executions per second |
|---|---|
| ✓ for...of | 29,719 Ops/sec |
| reduce with push | 23,337 Ops/sec |
| flatMap | 3,302 Ops/sec |
| reduce with spread | 20 Ops/sec |