Measuring HTTP/3 real-world performance

By on 9 Oct 2023

Category: Tech matters

Tags: , ,

Blog home

So far in this series (Part 1 and Part 2), I’ve detailed how QUIC and HTTP/3 have overcome the security and privacy issues that plague the Transport Control Protocol (TCP) and HTTP/2 in a future-proof way. In this post, I’ll look at how they compare when it comes to perhaps the most important feature of any protocol — performance.

Comparing HTTP/3 and HTTP/2 performance

While it is still somewhat early days to definitively answer this question, given most (public) comparisons between HTTP/2 and HTTP/3 are based on lab testing instead of real-world deployments, we have some data points that can shed some light.

Firstly, Google’s original paper describing QUIC’s basic mechanisms reported an 8% average reduction in the time it took to load Google search results on desktop and 3.6% on mobile. And for the slowest 1% of Google users, it was up to 16% faster to load. When looking at YouTube video streaming, they found up to 20% less video stalling (when the video playback needs to stop to wait for new data to come in) in economies such as India.

These numbers might not seem like huge improvements at first glance. However, at Google’s scale, they can easily mean millions in additional revenue, as web performance is tied to user engagement and visit conversions.

Secondly, Wix, a popular and powerful website creation tool, ran experiments comparing HTTP/2 to HTTP/3 on their millions of customer websites. Looking primarily at connection setup times, they found up to 33% improvements in the mean and often more in the 75th percentile (Figure 1).

For some economies, such as the Philippines, this can have a significant impact — more than 250ms. Similarly, when looking at another popular web performance metric called Largest Contentful Paint (LCP), they found up to 20% improvements at the 75th percentile, often lowering the LCP value by more than 500ms (or about a fifth of the 2,500ms Google recommends as a target value). That’s not bad for switching to a new protocol!

Figure 1 — A comparison of the 75th percentile of connection setup times between HTTP/2 (orange) and HTTP/3 (blue).
Figure 1 — A comparison of the 75th percentile of connection setup times between HTTP/2 (orange) and HTTP/3 (blue). Source: Twitter.

Finally, my employer Akamai, the largest Content Delivery Network (CDN) in the world, has been testing and tuning HTTP/3 for several years. In general, we see similar gains to connection setup speeds. Additionally, we have been looking at average throughput (effective bandwidth usage), which should also be improved by, for example, QUIC’s better packet loss detection and recovery.

For one large Akamai media customer during a European football (soccer) live-streaming event that was also popular in Latin America, we saw substantially higher throughput on HTTP/3 compared to HTTP/2 (Table 1). For example, we saw about 69% of HTTP/3 connections reach a throughput of 5 Mbps or more (indicated by Netflix as the minimum threshold for Full HD video streaming), compared to only 56% of HTTP/2 connections. In practice, this means that the video streams will be of a higher visual quality, and/or have fewer stalls over HTTP/3.

HTTP Version1mbps3mbps5mbps10mbps15mbps25mbps50mbps
HTTP/273.5%62.0%56.4%47.4%40.9%31.1%18.2%
HTTP/386.2%76.5%69.7%56.7%47.7%35.0%19.2%
Table 1 — Akamai throughput comparison in Latin America between HTTP/3 and HTTP/2 during a live stream on 19 April 2023. Percentages show the number of connections that reached the target throughput or more. Source: Akamai.

Getting robust performance measurements from real HTTP/3 deployments remains difficult

Because HTTP/3 requires a bootstrapping process (using a feature called alt-svc) it can be difficult to make a clean comparison/split between HTTP/2 and HTTP/3. Additionally, many large companies are not keen on sharing raw numbers for business reasons.

Still, the fact that companies such as Google, Meta, Apple, Twitch, and large CDNs such as Akamai, Cloudflare, and Fastly are deploying the protocols at scale should be a good indicator of the practical (performance) benefits they bring. This is true because QUIC and HTTP/3 are (much) more expensive to host on their platforms, costing more CPU time and memory than TCP and HTTP/2, due to, for example, their more extensive encryption. This cost is (apparently) sufficiently offset by the protocols’ benefits on their bottom line.

In my next post, I’ll discuss the impact of this expense and other limiting factors when it comes to deploying QUIC and HTTP/3 and whether this will hold them back.

Robin Marx is a Web Protocol and Performance Expert at Akamai. 

This post was originally published on the Internet Society’s Pulse Blog.

Rate this article

The views expressed by the authors of this blog are their own and do not necessarily reflect the views of APNIC. Please note a Code of Conduct applies to this blog.

Leave a Reply

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

Top