map().flat() vs flatMap()Fastest: map().flat() (1.1x faster)
313 ops/sec
281 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| map().flat() | |
| flatMap() |
| Test name | Executions per second |
|---|---|
| ✓ map().flat() | 140 Ops/sec |
| flatMap() | 128 Ops/sec |