x/net/http2: HTTP/2 slower than HTTP/1 #36440
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Uh oh!
There was an error while loading. Please reload this page.
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
)?go env
OutputWhat did you do?
I created a HTTP/2 client server app. When I use HTTP/1, it is average twice as fast as the HTTP/2 version! I am hoping that it is me (I bet it is me) doing something wrong but cannot be sure because the resources/examples I found seem to be doing things in same way as I do so I've run out of options.
What did you expect to see?
HTTP/2 request/response should be faster than the HTTP/1 version.
What did you see instead?
HTTP/1 request/response is faster than the HTTP/2 version.
702.225996ms
vs1.3265715s
Server app
Client app
I also tried with transport below instead of
golang.org/x/net/http2
as shown above but the result is same.The text was updated successfully, but these errors were encountered: