flatMap vs reduce with pushFastest: reduce with push (3.6x faster)
14,433 ops/sec
4,040 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| flatMap | |
| reduce with push |
| Test name | Executions per second |
|---|---|
| ✓ reduce with push | 26,512 Ops/sec |
| flatMap | 7,089 Ops/sec |