-
Book Overview & Buying
-
Table Of Contents
ASP.NET Site Performance Secrets
By :
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 are sent by the load generator contain Accept-Encoding: gzip,deflate, forcing the web server to provide compressed responses.
2. Run perfmon from the command prompt. Expand the CPU bar. You should find that the IIS Worker Process is the heaviest...
Change the font size
Change margin width
Change background colour