07.11.2014 Views

Enterprise Library Test Guide - Willy .Net

Enterprise Library Test Guide - Willy .Net

Enterprise Library Test Guide - Willy .Net

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Test</strong>ing for Performance and Scalability 211<br />

Profiling the Workload<br />

The number of users increases over time. The number of users was 1, 5, 10, and 50.<br />

There was no test mix and there was no think time.<br />

Setting Up the Load <strong>Test</strong><br />

The load test simulates many clients accessing the application block at the same time.<br />

Use the information in the workload profile to set the load test parameters. For more<br />

information, see Creating a Load <strong>Test</strong>.<br />

Recording Baseline and Application Block Metrics<br />

The baseline tests are a subset of the Cryptography Application Block performance<br />

tests. The first objective is to compare the cost of using the Cryptography Application<br />

Block to encrypt and decrypt plaintext with the RijndaelManaged provider against<br />

of the cost of using the .NET Framework to do the same thing. The second objective<br />

is to compare the cost of using the Cryptography Application to hash plaintext with<br />

the HMACSAH1 provider and then compare the hashed value with the plaintext<br />

against of the cost of using the .NET Framework to do the same thing. For information<br />

about acceptable performance limits, see Measuring Performance.<br />

Table 22 is the template to record the performance metrics both for the baseline and<br />

for the application block.<br />

Table 22: Template to Record and Compare Metrics<br />

Operation Users TPS<br />

Response<br />

time (ms)<br />

Total transactions<br />

Overhead<br />

(percent)<br />

.NET Framework 1 Baseline<br />

uses RijndaelManaged<br />

provider to<br />

encrypt and decrypt<br />

plaintext.<br />

.NET Framework 10 Baseline<br />

uses RijndaelManaged<br />

provider to<br />

encrypt and decrypt<br />

plaintext.<br />

.NET Framework 50 Baseline<br />

uses RijndaelManaged<br />

provider to<br />

encrypt and decrypt<br />

plaintext.<br />

.NET Framework<br />

uses HMACSAH1<br />

provider to hash<br />

and compare plaintext.<br />

1 Baseline<br />

continued

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!