What is recommended minimum object size for gzip performance benefits?
Posted
by
utt73
on Pro Webmasters
See other posts from Pro Webmasters
or by utt73
Published on 2012-07-05T17:00:30Z
Indexed on
2012/07/06
3:24 UTC
Read the original article
Hit count: 596
I'm working on improving page speed display times, and one of the methods is to gzip content from the webserver.
Note that gzipping is only beneficial for larger resources. Due to the overhead and latency of compression and decompression, you should only gzip files above a certain size threshold; we recommend a minimum range between 150 and 1000 bytes. Gzipping files below 150 bytes can actually make them larger.
We serve our content through Akamai, using their network for a proxy and CDN. What they've told me:
Following up on your question regarding what is the minimum size Akamai will compress the requested object when sending it to the end user: The minimum size is 860 bytes.
My reply:
What is the reason(s) for why Akamai's minimum size is 860 bytes? And why, for example, is this not the case for files Akamai serves for facebook? (see below) Google recommends to gzip more agressively. And that seems appropriate on our site where the most frequent hits, by far, are AJAX calls that are <860 bytes.
Akamai's response:
The reasons 860 bytes is the minimum size for compression is twofold: (1) The overhead of compressing an object under 860 bytes outweighs performance gain. (2) Objects under 860 bytes can be transmitted via a single packet anyway, so there isn't a compelling reason to compress them.
So I'm here for some fact checking. Is the 860 byte limit due to packet size the end of this reasoning? Why would high traffic sites push this down to the 150 byte limit... just to save on bandwidth costs (since CDNs base their charges on bandwith offloaded from origin), or is there a performance gain in doing so?
© Pro Webmasters or respective owner