- CLI Quick Start
- GUI Quick Start
Run Your First Stress Test
Generate Sample Configuration
Create a sample configuration file to use as a starting point:This creates a
sample.json file in your current directory.Customize Connection Settings
Edit the
MainDbConnectionInfo section to match your SQL Server instance:Set
IntegratedAuth to true for Windows Authentication, or false and provide Login and Password for SQL Authentication.Configure Load Parameters
Set the number of threads and iterations:
NumThreads: Number of concurrent connections (e.g., 10 for 10 concurrent users)NumIterations: Number of times each thread executes the query (e.g., 100)
Run the Stress Test
Execute the stress test with your configuration:The
-t 1 parameter specifies a 1-second timeout between status updates.Expected Output
You should see output similar to this:Configuration Options
Statistics Collection
Statistics Collection
CollectIoStats: Collect SQL Server I/O statistics (logical reads, physical reads)CollectTimeStats: Collect execution time statistics
Connection Settings
Connection Settings
EnableConnectionPooling: Enable ADO.NET connection poolingConnectionTimeout: Seconds to wait for connection before timeoutMaxPoolSize: Maximum number of connections in the pool
Execution Settings
Execution Settings
CommandTimeout: Query timeout in seconds (0 = no timeout)DelayBetweenQueries: Milliseconds to wait between query executionsForceDataRetrieval: Force retrieval of all result dataKillQueriesOnCancel: Kill running queries when test is cancelled
Parameterized Queries
Parameterized Queries
Use
ParamQuery and ParamMappings to execute queries with dynamic parameters:ParamQuery: Query that returns parameter valuesParamMappings: Map parameter columns to query parametersParamDbConnectionInfo: Connection settings for parameter query (or useShareDbSettings: true)
Tips for Effective Stress Testing
Start Small
Begin with low thread counts and iterations. Gradually increase load to understand your system’s limits.
Monitor Server Resources
Use SQL Server Management Studio or Performance Monitor to watch CPU, memory, and I/O while testing.
Test Realistic Scenarios
Use queries and parameters that mirror your actual application workload.
Collect Statistics
Enable I/O and time statistics to get detailed performance metrics.
Next Steps
Advanced Configuration
Learn about advanced configuration options and features
Best Practices
Discover best practices for SQL Server stress testing