DCSIMG
How Do “Visual Studio 2010 Web Performance Test” and “Visual Studio 2010 Load Test” Cache Works? - Eran Ruso
Sign in | Join | Help

How Do “Visual Studio 2010 Web Performance Test” and “Visual Studio 2010 Load Test” Cache Works?

פורסם בתאריך Sep 02 2010, 09:31 AM על ידי Eran Ruso | ישנם 2 תגובות

In order to model the real world while we test our applications for performance most chances we will need to test using the cache located on client’s computers.

Both in “Web Performance Test” and “Load Test” we have the ability to do that, but how does it really works?

In both cases the cache will be saved in memory!

  • Web Performance Test: The only requests in the test scenario that will “benefit” from using the Cache are the requests that repeats in the test scenario, for example: getting to home page twice in one scenario.
  • Load Test: The first run of the “Virtual User” will save the cache in memory and all the runs that comes after that for the same virtual user will benefit from the cache.

So how do we set the cache in each case?

Web Performance Test

Step 1: Open the recorded “Web Performance Test”

Step 2: The cache is configured per request so choose the required request

Step 3: Open the Properties window of the request

Step_1__Request

Step 4: Change the “Cache Control” to True

Step_2_Properties

Start running the scenario and benefit from the cache.

Load Test

Step 1: Open the “Load Test”

Step 2: Right Click on the Scenario, in this example “Scenario1” and choose Properties

Step_3_Load_Test

Step 3: In the Properties window type the required percentage of new users in the “Percentage of New Users” field.

This will define how many Virtual Users will get a memory storage and how many will not get a memory storage.

Step_4_Precentege

You can now run the test and start benefit from cache.

Have Fun!!!

רשימת תגובות

# re: How Do “Visual Studio 2010 Web Performance Test” and “Visual Studio 2010 Load Test” Cache Works?

פורסם בתאריך Thursday, September 30, 2010 9:31 AM על ידי Someone  

Thanks for this article, however I found it hard to understand and confusing. Maybe you should write a longer and more explaining article.

# re: How Do “Visual Studio 2010 Web Performance Test” and “Visual Studio 2010 Load Test” Cache Works?

פורסם בתאריך Monday, October 04, 2010 11:42 AM על ידי Pete  

Hi

Thanks for the article however I had thought that it would be much more in depth and give much more explaining on how to use Visual Studio 2010 web performance and load testing tools.

I'm sorry to say that I do not think I have gained much from this article.

Please let this not discourage you. I just think this article should do more to explain the VS 2010 web load and performance tools.

Thanks

שלח תגובה

(שדה חובה) 
(שדה חובה) 
(אופציונלי)
(שדה חובה) 

Enter the numbers above: