public PerformanceTest
Mark the test as a JPut performance test, allowing to assert test execution time and analyze execution time trends
| Modifier and Type | Method and Description |
|---|---|
long |
averageTimeLimit()
Upper limit for average execution time when using
|
long |
delay()
Delay between test repeats,
|
boolean |
isReactive() |
long |
maxTimeLimit()
Upper limit for test execution time in milliseconds
|
int |
parallel()
Tests will run in parallel if threads count is greater than 1
|
long[] |
percentiles() |
long |
rampUp()
Ramp-up in milliseconds.
|
int |
repeats()
Count of test execution repeats
|
java.lang.String |
testId()
Unique test id,
|
PerformanceTrend[] |
trends()
Performance trend analyzing
|
int |
warmUp()
Count of warm up test executions
|
java.lang.String testId()
Unique test id,
used to distinguish different tests. Default to testClassName#testMethodName
int warmUp()
Count of warm up test executions
int repeats()
Count of test execution repeats
long delay()
Delay between test repeats,
in ms
long maxTimeLimit()
Upper limit for test execution time in milliseconds
long averageTimeLimit()
Upper limit for average execution time when using
repeats > 1, in milliseconds
long[] percentiles()
int parallel()
Tests will run in parallel if threads count is greater than 1
long rampUp()
Ramp-up in milliseconds.
If parallel is 100, and the ramp-up period is 100000 (100 seconds),then JPut will take 100 seconds to get all 100 threads running, i.e. 1 second delay after each new thread
boolean isReactive()
PerformanceTrend[] trends()
Performance trend analyzing