Skyramp Test
Performance Testing
Performance Testing
Introduction
With Skyramp’s tester_start_v1
function’s loadtest_config
options, it is easy to change any test to a performance test.
loadtest_config
Options
target_rps
: desired requests per second to be generated.at_once
: number of concurrent requests to be made.rampup_interval
: interval after which to increase current rps.rampup_duration
: time over which to scale totarget_rps
starting from 0 rps.stop_on_failure
: boolean to control whether the test continues in the event of a failure or stops.duration
: how long to run the test.count
: set number of requests to generate before stopping.
Example
In this example:
We specify that we want to scale to 1000 requests per second hitting
/artists
to create new artists.With two requests hitting the endpoint concurrently.
The test will last 10 seconds. Alternatively, we could have specified a maximum number of requests to be generated and send before stopping the test via
count
.Starting from 0 requests per second every second the worker will increase the rate by 200 requests per second to ramp up to 1000 requests per second within 5 seconds.
If a request fails at any point we will stop the test.