I’d like to know if there are different bandwidth limits concerning cloning repositories via HTTPS or SSH, so that I can inform the users of my open-source repositories (this is important because one of the external tools which does the cloning of my repositories does not properly inform the user, so a slow git clone seems like a freeze, and users end up quitting because of that).
I noticed that when I clone one of my repositories using a
https:// URL, it seems capped to 500 KB/s (with a very stable upper limit), but if I use
git:// (SSH), the download speed is much more variable and can exceed 5 MB/s. The repository itself is fairly large (~80 MB), so this makes a lot of difference for our users (seconds instead of minutes).
We currently recommend users to stick with HTTPS, as suggested by Github and because it is simpler (no SSH key required), but nowhere in the documentation is this bandwidth difference mentioned, so I cannot find out if this difference is intentional and consistent, or if it is a specific situation that will not be experienced by my users.
Note: I went to https://github-debug.com/ and tried cloning both repositories, but they are so small that the speed does not seem representative; there was no significant difference between cloning them (545 KB/s for the HTTPS one and 600 KB/s for the SSH one).