Skip to content

Latest commit

 

History

History

azure-data-appconfiguration-perf

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Azure App Configuration Performance test client library for Java

Represents Performance tests for Azure App Configuration SDK for Java.

Getting started

Prerequisites

Setup for test resources

You will need the following environment variables for running the tests to access the live resources:

AZURE_APPCONFIG_CONNECTION_STRING=<app-configuration-connection-string>

Adding the package to your product

Key concepts

Examples

Executing the performance test

  1. 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
    
    
  2. 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
    
    

Common perf test command line options for App Configuration

  • --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.

Troubleshooting

Next steps

Contributing

For details on contributing to this repository, see the contributing guide.

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request