-
Notifications
You must be signed in to change notification settings - Fork 17.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
crypto/tls: degraded performance from 1.8 to 1.9 version #23962
Comments
@xp-1000 - Did you get a chance to check this with 1.11.2 ? |
Hello @agnivade,
it seems not better. |
AFAIU, your code makes a network request to cloudwatch and gets some results. This is very much dependent on your network speed. If you say that the problem is with crypto/tls in general, then any tls connection should show the same delay. Ideally, we would want the network part out of the equation by setting up a local server. Your current repro, as it stands is a very generalised one without pointing towards any particular part of crypto/tls. I will leave it for others to investigate. |
@xp-1000 - Just wanted to check in on this. If you can shorten the code to something that does not need to have an aws cloudwatch setup, it will help us investigate this faster. |
Timed out in state WaitingForInfo. Closing. (I am just a bot, though. Please speak up if this is a mistake or you have the requested information.) |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?What did you do?
I use a very simple program created in December 2016 which use aws-go-sdk to get a metric on ELB.
It has been compile with go 1.8 and there is no problem until now.
I had to re-compiled it recently (with go 1.9) to add changes and I noticed a degradation of the performance.
Since I also tested go 1.10 and there I noticed the same behavior as for 1.9 version.
The code is exactly the same but 1.9/1.10 binary version execution time is more than 2x greater than with the 1.7/1.8 binary version.
i.e. result of a test run for each version :
for 1.8.7 version :
for 1.10 version :
I suspect it is linked to the ssl request made to cloudwatch and so the issue #23727
Here is a pprof cpu pdf for 1.8 version :
out-go18.pdf
And the same for 1.10 version :
out-go110.pdf
What did you expect to see?
Almost the same performance / time execution.
What did you see instead?
An increase of the time execution and the resource consumption
Thanks
The text was updated successfully, but these errors were encountered: