What is optimal number of parallel URLSessionDownloadTask in URLSession? I am trying to download multiple files (bigger files 10+MB) from different servers.
I tested downloading 10 files on 40Mbps connection. When I run single download task, speed is on average 21 Mbps. When I run 5 tasks in parallel, task speed is on average 6 Mbps. 10 tasks in parallel average speed 3 Mbps. So 5 is faster then 1 but 5 and 10 are same.
Is there optimal parallel tasks count? Or is URLSession managing URLSessionDownloadTask and determines how many are executed based on network speed?