WebPagetest Forums

Full Version: how to find %gzip, %compress img, %cache static
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I was looking into the "Performance Review" Results tab. It has a table where it shows the % of Gzip, Compress Img, Cache static. How are we calculating the percentage. If i do a simple calculation of finding percentage, it doesn't give me the number which shows there. For e.g. %gzip = no.of gzipped components/no. of components applicable.

Please help me to figure how the percentage is calculated.

Regards,
Akshay
Hi Pmeenan,

Please help me here. Smile

Regards,
Akshay
(03-18-2016 02:56 AM)akshayvas Wrote: [ -> ]Hi,

I was looking into the "Performance Review" Results tab. It has a table where it shows the % of Gzip, Compress Img, Cache static. How are we calculating the percentage. If i do a simple calculation of finding percentage, it doesn't give me the number which shows there. For e.g. %gzip = no.of gzipped components/no. of components applicable.

Please help me to figure how the percentage is calculated.

Regards,
Akshay

Dear Akshay,

It is not that difficult to figure it out for the "gzip compression" & "optimize images" recommendations.

Please check the following examples and you will see the pattern:

1. Use gzip compression for transferring compressable responses: 42/100
762.1 KB total in compressible text, target size = 325.1 KB - potential savings = 437.0 KB

325/762 = 42%

2. Compress Images: 56/100
821.3 KB total in images, target size = 465.0 KB - potential savings = 356.3 KB

465/821 = 56%

Regarding the percentage of "browser caching" recommendation, it is most likely the following:
number of images/css/Javascript files without correct expiry headers / number of total images/css/Javascript files

I hope it makes sense.

Regards,
Stavros
Reference URL's