Brotli Compression in Performance Testing Data compression plays paramount importance in web speed. GZIP is the most famous and widely used compression technique across WWW. Couple years ago Google conceived Brotli compression whole new lossless data compression alternative to gzip, deflate and zopfli. Apache JMeter 3.3 started supporting Brotli compression in its HTTP Sampler. This article focusses about brotli and how to validate brotli compression in performance testing.
What is Brotli?
Well, this is brötli. Google named after Swedish pastry. Brotli is an open source data compression library developed by Jyrki Alakuijala and Zoltán Szabadka. It is tailored based on Lz77 and Huffman coding.
Brotli weighs about 120 kb; it contains about 13K common words and phrases.
If the server implemented brotli compression, then the page will respond with the content-encoding as br.
All modern browsers support brotli compression. Chrome from version 49, Edge from version 15, Firefox from version 44 and so on. You can check the support matrix over here http://caniuse.com/#feat=brotli
Did you know? Brotli is written in C. It does has bindings for Java, Python, C# and Go.
How to enable brotli in Google Chrome?
Install the latest version of Chrome and visit chrome://flags/#enable-brotli. Select Enabled as shown below.
Hi there! NaveenKumar N is a passionate and experienced Performance Test Analyst based in Chicago, IL, USA with the skill sets in Manual Testing, Test Automation, Performance Testing, and Web Services.
He loves to learn and experiment new trends and models in Software Testing.
Please stop by at his personal blogs: NaveenKumarN.in, PerfTractor and Giftt