The first download of CocoaPods is very slow and only tens of kb. I am here because the default value of curl's postBuffer is too small. Here it is set to 500mb.
git config --global http.postBuffer 524288000
The measured download speed returned to normal