Represents Performance tests for Azure App Configuration SDK for Java.
- A Java Development Kit (JDK), version 8 or later.
- Azure Subscription
- App Configuration Store
You will need the following environment variables for running the tests to access the live resources:
AZURE_APPCONFIG_CONNECTION_STRING=<app-configuration-connection-string>
- Compile the performance project into a standalone jar using the command from the root of the perf project folder
mvn clean package -f sdk\appconfiguration\azure-data-appconfiguration-perf\pom.xml
- Execute the corresponding perf test in the project using the command.
java -jar <path-to-packaged-jar-with-dependencies-from-step-1> <options-for-the-test> java -jar sdk\appconfiguration\azure-data-appconfiguration-perf\target\azure-data-appconfiguration-perf-1.0.0-beta.1-jar-with-dependencies.jar listconfigurationsettings --warmup 1 --iterations 1 --parallel 6 --duration 10 --count 20
--duration
- Number of seconds to run the main test for. Default is 10.--iterations
- Number of iterations of main test loop.--parallel
- Number of operations to execute in parallel,--warmup
- Duration of test warmup time in seconds before the test attributes are calculated.
Use PerfStressOptions for the other command line options that could be used.
For details on contributing to this repository, see the contributing guide.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request