Closed arve0 closed 5 years ago
Hey, Thank you for the test, I was able to confirm, that the problem is not related to http2-client. I did the same test directly with http2 core library without http2-client and the results were similar, against http2 (well, depends...).
Http2 has a lot of benefits over https, one of these is indeed multiplexing.
When I recreated your test I changed the test against small | mid | big
objects to be downloaded.
The results show:
Therefore, the problem relates to when to multiplex over the same connection and not directly to http2 vs https or https vs http2-client. For example, one can choose to open multiple http2 connection and multiplex with each one...
Thanks!
Thanks 👍 Closing.
Expected: http2-client should give a performance gain to https, as requests can multiplex. Actual: https consistently outperform http2-client, often by a factor of >2.
test-http-speed.js: