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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

170<br />

<strong>Enterprise</strong> <strong>Library</strong> <strong>Test</strong> <strong>Guide</strong><br />

Total Transactions<br />

This section describes how to calculate the overhead cost in terms of percentage of<br />

total transactions. For Web applications, the term “total hits” is often used instead of<br />

“total transactions.”<br />

Overhead cost = ((Total transactions for .NET – Total transactions for application<br />

block)/Total transactions for .NET) * 100<br />

Table 1 lists the data that was collected during a 7 minute performance test. The goal<br />

was to compare the cost of using the Caching Application Block in <strong>Enterprise</strong> <strong>Library</strong>–January<br />

2006 to add an item to the cache against the ASP.NET and <strong>Enterprise</strong><br />

<strong>Library</strong> 1.1 baselines.<br />

Table 1: Overhead of Using Caching Application Block Add Method<br />

Component TPS Time (sec) Overhead<br />

Total<br />

transactions<br />

ASP.NET 1844.215 0.048801 baseline 608591<br />

<strong>Enterprise</strong> <strong>Library</strong> 1.1<br />

(instrumentation off) 1692.394 0.053179 8.23% 558490<br />

<strong>Enterprise</strong> <strong>Library</strong> 1.1<br />

(instrumentation on) 1626.352 0.055339 11.81% 536696<br />

<strong>Enterprise</strong> <strong>Library</strong> – January 2006<br />

(instrumentation off) 1725.536 0.052158 6.44% 569427<br />

<strong>Enterprise</strong> <strong>Library</strong> – January 2006<br />

(instrumentation on) 1611.703 0.055842 12.61% 531862<br />

The overhead of using the <strong>Enterprise</strong> <strong>Library</strong>–January 2006 Caching Application<br />

Block is calculated as follows:<br />

Total Transactions for ASP.NET = 608591<br />

Total Transactions for <strong>Enterprise</strong> <strong>Library</strong>–January 2006 (instrumentation on) =<br />

531862<br />

Overhead = ((608591-531862)/608591*100) =12.61%<br />

Transactions per Second<br />

This section describes how to calculate the overhead cost in terms of percentage of<br />

transactions per second (TPS).<br />

Overhead cost = ((TPS for .NET – TPS for application block)/TPS for .NET) * 100

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

Saved successfully!

Ooh no, something went wrong!