HTTP/1 vs HTTP/2 Page Loading

Want to help support this blog? Try out Oh Dear, the best all-in-one monitoring tool for your entire website, co-founded by me (the guy that wrote this blogpost). Start with a 10-day trial, no strings attached.

We offer uptime monitoring, SSL checks, broken links checking, performance & cronjob monitoring, branded status pages & so much more. Try us out today!

Profile image of Mattias Geniar

Mattias Geniar, April 16, 2015

Follow me on Twitter as @mattiasgeniar

An interesting proof-of-contept: http2.golang.org.

Especially with simulated latency, HTTP/2 shows its true potential.

HTTP/1: 31s to load

Loading happens in clear concurrency blocks of 6 assets each.

http1_waterfall_1

30 seconds later

http1_waterfall_2

And done, after a whopping 31 seconds.

HTTP/2: 1.7s to load

Concurrency shows its power here. Assets are loaded over a single multiplexed TCP stream.

http2_concurrency_1

1.5 seconds later

http2_concurrency_2

These results are in line with my earlier testing on HTTP/2;

Despite all its hate HTTP/2 seems to be receiving, some benchmarks just don’t lie.



Want to subscribe to the cron.weekly newsletter?

I write a weekly-ish newsletter on Linux, open source & webdevelopment called cron.weekly.

It features the latest news, guides & tutorials and new open source projects. You can sign up via email below.

No spam. Just some good, practical Linux & open source content.