How can I check gzip decoding time in a web browser?

I want to check gzip coding speed performance in a web browser. In Java or C #, we can easily check the gzip decoding time. But I can not measure the decoding time in a web browser.

Help me. I want to check the decoding speed of gzipped html files. Using JavaScript, you can evaluate performance.

+4
source share
4 answers

I don’t think there is a way to get this time, especially in your own Javascript code: I believe that decompression is performed at a much lower level (for example, somewhere around the boot / network level of the browser) than rendering the execution page of your Javascript code.

This would be the best solution so that this compression is completely transparent to the upper layers: when rendering pages or executing JS code, it is absolutely not necessary for the browser to know that it was received in a compressed form.


Maybe a solution, especially with Firefox, should have developed some extension?

Given that Firebug, for example, is able to "connect" to the network layer to display the information that we get on the "Network" tab, I suppose you could do something like this?

+1
source

In open source browsers such as Chromium or Firefox, you can look at the source code and insert some lines to record the time it takes to decode. If the browser uses a specific library to decode gzip, you can, of course, also download this library and test it.

+1
source

In Google Chrome, you can check the various properties of chrome.loadTimes() .

0
source

You can do this with Fiddler - it has a time display for each HTTP transaction. Since Fiddler is a debugging proxy server, it works with any browser. Windows only.

0
source

Source: https://habr.com/ru/post/1304069/


All Articles