Overview
Thesqlstresscmd command-line tool allows you to run SQL Query Stress tests from the terminal without using the GUI. All test configuration is provided via a JSON settings file.
Basic Usage
Command-Line Options
Path to the JSON settings file containing test configuration. The test will not run without a valid settings file.Example:
Database server to connect to. This overrides the server specified in the settings file.Example:
Number of concurrent threads to use for the load test. Overrides the
NumThreads value in the settings file.Default: 1Example:Path to a .sql script file to execute. This allows you to specify the query from a file instead of embedding it in the JSON settings.Example:
Extract the sample configuration file (This will create
sample.json) to the current directory. Use this to generate a template configuration file.Example:sample.json in the current directory if it doesn’t already exist.Path to automatically save test results to a file.Example:
This feature is planned but not yet implemented.
Complete Examples
Run a basic load test
saved.json with 32 concurrent threads.
Override database server
Use external SQL file
complex-query.sql instead of the query in the settings file.
Generate sample configuration
sample.json in the current directory with all available configuration options.
Help Command
To display built-in help information:Error Handling
If the settings file is not found or invalid:Related
- Configuration File Format - Learn about the JSON settings file structure
- Statistics Reference - Understand the metrics collected during tests