O'Reilly logo

ASP.NET Site Performance Secrets by Matt Perdeck

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required