Skip to content

why -h2 lower have qps ? #890

Answered by ldemailly
abasitt asked this question in Q&A
Feb 19, 2024 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

When using h2 it forces to use the standard go http client instead of the custom "fast" client (what H2 requested, switching to std client in the output indicates), the fast client only implements http1.1, fast client is... faster (do confirm that what you see is client bottleneck (maxing out cpu on the client))

You might need to increase the number of connections. This being said the gap seems a bit high so maybe something else is going on (in theory h2 is more efficient than http1.1 - what happens if you use http1.1 with std client for comparison?)

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@abasitt
Comment options

@ldemailly
Comment options

@abasitt
Comment options

Answer selected by ldemailly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants