net/http: http/2 throughput is very slow compared to http/1.1 #47840
Labels
Milestone
Comments
You're comparing encrypted HTTP/2 with unencrypted HTTP. You need to compare HTTP/2 with HTTPS to compare like with like. |
hi, the POC is using H2C to avoid encryption. |
Caddy a web server written in Go has the same issue. I've updated the POC with a sample Caddy config: https://github.com/nspeed-app/http2issue/tree/main/3rd-party/Caddy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What version of Go are you using (
go version
)?1.7
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?Linux, Windows, etc
go env
OutputWhat did you do?
test http/2 vs http1.1 transfert speed with client and server from standard lib
see a complete POC here: https://github.com/nspeed-app/http2issue
The issue is general, loopback (localhost) or over the wire.
What did you expect to see?
same speed order than http1.1
What did you see instead?
http/2 is at least x5 slower or worst
The text was updated successfully, but these errors were encountered: