flatMap vs reduce with push vs loop with push vs map flat()| Test case name | Result |
|---|---|
| flatMap | |
| reduce with push | |
| loop with push | |
| map flat() |
| Test name | Executions per second |
|---|---|
| ✓ loop with push | 33,513 Ops/sec |
| reduce with push | 20,423 Ops/sec |
| flatMap | 5,683 Ops/sec |
| map flat() | 5,564 Ops/sec |