HTTP/2 is not much faster than HTTP/1.1

Benchmarking HTTP protocols using JavaScript modules. Do you think more modern HTTP/2 is faster than legacy HTTP/1.1?

Marian C.
CodeX

--

Why not HTTP/3?

Even though HTTP/3 prevails on the Web, it is not yet supported by Node.js or Tomcat.

What is HTTP/2?

These days HTTP/1.1 is less common than HTTP/2. Why? Because HTTP/2 is supposed to be more performant.

The better performance and the new features of HTTP/2 are enabled by a complicated format of HTTP messages. But web developers do not normally notice any changes except the improved performance because the request methods and the message headers remain the same as before. It is the developers of servers and browsers who take care of the HTTP/2 complexity.

In this post I compare the throughput of HTTP/2 and its predecessor HTTP/1.1. But first I briefly mention the major differences between the two protocols. If you are interested in HTTP/2 details, you can read about all the fantastic features of HTTP/2 in an optimistic overview https://developers.google.com/web/fundamentals/performance/http2 by Google team.

Fundamental differences between HTTP/1.1 and HTTP/2

--

--