reduce with spread vs flatMap vs reduce with pushFastest: reduce with push (1142.7x faster)
31,017 ops/sec
5,174 ops/sec
27 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 spread | |
| flatMap | |
| reduce with push |
| Test name | Executions per second |
|---|---|
| ✓ reduce with push | 14,786 Ops/sec |
| flatMap | 2,244 Ops/sec |
| reduce with spread | 12 Ops/sec |