WebPagetest Forums
how to find %gzip, %compress img, %cache static - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: General Discussion (/forumdisplay.php?fid=25)
+--- Thread: how to find %gzip, %compress img, %cache static (/showthread.php?tid=14252)



how to find %gzip, %compress img, %cache static - akshayvas - 03-18-2016 02:56 AM

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


RE: how to find %gzip, %compress img, %cache static - akshayvas - 03-21-2016 06:53 PM

Hi Pmeenan,

Please help me here. Smile

Regards,
Akshay


RE: how to find %gzip, %compress img, %cache static - speed-optimization - 03-22-2016 06:19 AM

(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