flatmap vs map+flatFastest: flatmap (1.2x faster)
3,668 ops/sec
3,182 ops/sec
Fastest: flatmap (1.5x faster)
3,576 ops/sec
2,465 ops/sec
Fastest: flatmap (2.8x faster)
11,415 ops/sec
4,122 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| flatmap | |
| map+flat |
| Test name | Executions per second |
|---|---|
| ✓ flatmap | 3,849 Ops/sec |
| map+flat | 3,259 Ops/sec |