org.databene.contiperf
Annotation Type Required


@Documented
@Target(value={METHOD,TYPE})
@Retention(value=RUNTIME)
public @interface Required

Specifies performance requirements for a test.

Created: 15.10.2009 14:42:57

Since:
1.0
Author:
Volker Bergmann

Optional Element Summary
 int average
          Requires the average test execution time to be of the specified value or less.
 int max
          Requires each test execution time of the specified value or less.
 int median
          Requires the execution time of 50% of the test executions of the specified value or less.
 int percentile90
          Requires the execution time of 90% of the test executions of the specified value or less.
 int percentile95
          Requires the execution time of 95% of the test executions of the specified value or less.
 int percentile99
          Requires the execution time of 99% of the test executions of the specified value or less.
 String percentiles
          Defines a custom set of percentile requirements as a comma-separated list of percentile:millisecond pairs, for example 80:300,96:2000 to require 80% of the invocations to take 300 ms or less and 96% to take 2000 ms or less.
 int throughput
          Requires the average number of test executions per second to be the specified value or higher.
 int totalTime
          Requires the total elapsed time from the beginning of the first test execution to the end of the last one.
 

throughput

public abstract int throughput
Requires the average number of test executions per second to be the specified value or higher.

Default:
-1

average

public abstract int average
Requires the average test execution time to be of the specified value or less.

Default:
-1

median

public abstract int median
Requires the execution time of 50% of the test executions of the specified value or less.

Default:
-1

max

public abstract int max
Requires each test execution time of the specified value or less.

Default:
-1

totalTime

public abstract int totalTime
Requires the total elapsed time from the beginning of the first test execution to the end of the last one. This does not mean the accumulated response time, but the duration of the test run.

Default:
-1

percentile90

public abstract int percentile90
Requires the execution time of 90% of the test executions of the specified value or less.

Default:
-1

percentile95

public abstract int percentile95
Requires the execution time of 95% of the test executions of the specified value or less.

Default:
-1

percentile99

public abstract int percentile99
Requires the execution time of 99% of the test executions of the specified value or less.

Default:
-1

percentiles

public abstract String percentiles
Defines a custom set of percentile requirements as a comma-separated list of percentile:millisecond pairs, for example 80:300,96:2000 to require 80% of the invocations to take 300 ms or less and 96% to take 2000 ms or less.

Default:
""


Copyright © 2013. All Rights Reserved.