Bandwidth difference between HTTPS and SSH cloning #22844
-
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 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). |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 3 replies
-
Please contact private support so they can help investigate this issue. Download speeds are highly variable depending on hardware, software, location, and the route over the Internet that the data takes. There is rarely a one-size-fits-all answer but private support can help investigate if there is a problem. |
Beta Was this translation helpful? Give feedback.
-
When I posted the question, I assumed this was a standard policy written somewhere, and not a specific issue, since both protocols work anyway. I’ll consider private support, but since this seems to concern few people, I’m assuming it must be specific to my case and not worthy of much attention. |
Beta Was this translation helpful? Give feedback.
-
This issue happened to me too. ssh is extremely slow, I have to replace the origin address from |
Beta Was this translation helpful? Give feedback.
-
Waiting for a good answer. 👀 👀 |
Beta Was this translation helpful? Give feedback.
-
According to my experiments, HTTPS is faster for tiny data transfers, e.g. |
Beta Was this translation helpful? Give feedback.
-
See also this SO answer https://stackoverflow.com/a/50567020/254109 : GitHub does CPU throttling and the difference may be caused by authenticated vs unauthenticated access. If you have a private GitHub repo, then you have to use authenticated HTTPS access. However, I do not know how to enforce authenticated HTTPS access for cloning public repo. |
Beta Was this translation helpful? Give feedback.
Please contact private support so they can help investigate this issue. Download speeds are highly variable depending on hardware, software, location, and the route over the Internet that the data takes. There is rarely a one-size-fits-all answer but private support can help investigate if there is a problem.