How to: Specify the Sample Rate for a Load Test Run Setting
This topic applies to:
Visual Studio Ultimate
Visual Studio Premium
Visual Studio Professional
Visual Studio Express
After you create your load test with the New Load Test Wizard, you can use the Load Test Editor to change the scenarios properties to meet your testing needs and goals. For more information, see How to: Create a New Load Test Using the New Load Test Wizard.
Using the Load Test Editor, you can edit a run settings Sample Rate property's value in the Properties window.
For a complete list of the run settings properties and their descriptions, see Load Test Run Setting Properties.
Choose an appropriate value for the Sample Rate property for the load test run setting based on the length of your load test. A smaller sample rate, such as the default value of five seconds, requires more space in the load test results database. For longer load tests, increasing the sample rate reduces the amount of data that you collect. For more information, see How to: Specify the Sample Rate for a Load Test Run Setting.
Here are some guidelines for sample rates:
Load Test Duration
Recommended Sample Rate
< 1 Hour
1 - 8 Hours
8 - 24 Hours
> 24 Hours
To specify performance counter sampling rate in a run setting
Open a load test.
The Load Test Editor appears. The load test tree is displayed.
In the load test tree, in the Run Settings folder, click the run setting that you want to specify the sample rate for.
On the View menu, select Properties Window.
The load run setting's categories and properties are displayed in the Properties window.
In the Sample Rate property, enter a time value that indicates the frequency at which the load test will collect performance counter data.
After you have finished changing the property, click Save on the File menu. You can then run your load test using the new Sample Rate value.