HTTP/1 vs HTTP/2 Page Loading

Mattias Geniar, Thursday, April 16, 2015

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.



Hi! My name is Mattias Geniar. I'm a Support Manager at Nucleus Hosting in Belgium, a general web geek & public speaker. Currently working on DNS Spy & Oh Dear!. Follow me on Twitter as @mattiasgeniar.

Share this post

Did you like this post? Will you help me share it on social media? Thanks!

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Inbound links