Measuring the difference compression makes

As you saw, enabling compression means giving up CPU capacity to achieve reduced file sizes. Now that you have enabled compression, you will want to evaluate whether it works for you.

To see the difference in file size, use the Web Developer add-on for Firefox. We saw how to use this earlier on in the Pinpointing bottlenecks section.

To see the difference in CPU usage, stress test your site with compression switched off and then switched on (Chapter 14, Load Testing shows how to do a load test):

  1. With compression switched on, start a load generator that puts a heavy load on your test site. This test isn't meant to simulate the real world, so do not use think times. Make sure that the request headers that ...

Get ASP.NET Site Performance Secrets now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.