reduce with concat vs flatMapFastest: flatMap (237.3x faster)
3,453 ops/sec
15 ops/sec
Fastest: flatMap (2466.0x faster)
3,695 ops/sec
1 ops/sec
Fastest: flatMap (1770.9x faster)
12,049 ops/sec
7 ops/sec
Fastest: flatMap (140.3x faster)
1,111 ops/sec
8 ops/sec
Fastest: flatMap (307.8x faster)
2,007 ops/sec
7 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| reduce with concat | |
| flatMap |
| Test name | Executions per second |
|---|---|
| ✓ flatMap | 4,842 Ops/sec |
| reduce with concat | 21 Ops/sec |