Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
net/http: Slow HTTPS #23727
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
@bradfitz Yes, this was more a question than a bug. I found some others issues like those you mentionned, but most of them talk about tls handshake, which, i think is a problem with many small https request. In this case, the requests fetch 100 MB of data each time. Some of them talk about arm64 architecture which is not relevant in this case.
@davecheney Thks for the answer. I tought the slowdown will be of few percent (many blog post on the net seems to show that), but i was wrong.
until now I compiled the program with go 1.8 and it works very fine :
But now I upgraded my go package to 1.9, I noticed that time execution increased to more than 2x compared to 1.8 binary without any change in the code :
the cpu consumption is also higher, I suspect the overhead comes from the SSL support in go 1.9 performed to cloudwatch to get the elb metric in my case.
Here is the pdf from pprof for 1.8 version :
and here is the pdf for 1.10 version :
it seems that the crypto part on new version makes much more syscall (and I/O operations) than the 1.8 version