joelvh / webpagetest

Automatically exported from code.google.com/p/webpagetest
0 stars 0 forks source link

Check gzip compression ratio #104

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Apache provides an option to control gzip compression level:

http://httpd.apache.org/docs/2.0/mod/mod_deflate.html#deflatecompressionlevel

DeflateCompressionLevel 1 (fastest compression) - 9 (best compression) - 
default is 6.

I think we could add a test to check if resources are gzip using highest 
possible level. Believe or not, but someone in my team changed the config to 1 
and this issue existed not noticed for around 2 years! 

The different for an example javascript file minified using yui is:

478969 original.js
182607 original.js-fast.gz
157171 original.js-6.gz
156894 original.js-best.gz

So the diff between 6 and 9 is not much (277b, 0.2%), the diff between 1 and 9 
is significant (25k, 14%). 

Original issue reported on code.google.com by piotr.ku...@gmail.com on 4 Jul 2012 at 3:04

GoogleCodeExporter commented 8 years ago
https://github.com/WPO-Foundation/webpagetest/issues/40

Original comment by PatMee...@gmail.com on 4 Jul 2013 at 5:47