Measure gzip and Brotli savings for a URL
how much does gzip save | compare brotli vs gzip size | compressed size of a page | measure transfer size curl | curl | gzip | brotli | compressionfor e in identity gzip br; do curl -s -o /dev/null -H "Accept-Encoding: $e" -w "$e: %{size_download} Bytes\n" https://example.com/; doneRequests the resource three times and shows the bytes actually transferred. curl does not decompress here, so the numbers reflect what goes over the wire. If all three values are the same, the server does not compress this resource.
Note: Works just as well for individual CSS and JS files. The entry on checking gzip and Brotli in the nginx category checks only the Content-Encoding header.
Also searched as
- how much does gzip save
- compare brotli vs gzip size
- compressed size of a page
- measure transfer size curl