Enterprise Library Test Guide - Willy .Net
Enterprise Library Test Guide - Willy .Net
Enterprise Library Test Guide - Willy .Net
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
<strong>Test</strong>ing for Performance and Scalability 171<br />
The following is an example that uses the data in Table 1:<br />
Transactions Per second for ASP.NET = 1844.21<br />
Transactions Per Second for <strong>Enterprise</strong> <strong>Library</strong> – January 2006(<br />
instrumentation on) = 1611.7<br />
Overhead = ((1844.21-1611.70)/1844.21)*100) = 12.60%<br />
Initialization Cost<br />
The initialization cost is the cost of preparing an application block so that it can begin<br />
to execute requests. This measurement is not relevant for Web applications because<br />
the first hit (this is the initialization cost) is not considered an important factor in<br />
terms of performance. However, the measurement does matter for smart client applications<br />
because users frequently stop and restart the application.<br />
Consistency<br />
The measurements for response times and use of system resources should be stable<br />
and consistent during performance tests and stress tests. This means that transactions<br />
should always return the expected results and there should be no interruptions of<br />
service. In addition, there should be no spikes in the use of system resources, such as<br />
memory or processors. Transactions that return data should show repeatable results.<br />
Availability<br />
The application block and the computer it runs on should be available. This means<br />
that if there are failures while the application block is running, they should be resolved<br />
before there are problems, such as service errors or corrupted data. For example,<br />
there should be no interruptions of service during the stress tests.<br />
Setting Up the <strong>Test</strong> Environment<br />
The test environment setup for <strong>Enterprise</strong> <strong>Library</strong> requires:<br />
●<br />
●<br />
A host engine for the application blocks.<br />
A network of computers to act as load agents.<br />
Choosing the Host Engine<br />
ASP.NET hosts the application blocks for the <strong>Enterprise</strong> <strong>Library</strong> tests. It has the<br />
following advantages:<br />
●<br />
●<br />
ASP.NET is well-documented and has readily available tools to measure<br />
performance and scalability.<br />
ASP.NET allows you to place the client and the server on separate computers.