com.sun.faban.driver
Annotation Type BenchmarkDriver


@Documented
@Inherited
@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface BenchmarkDriver

This annotation interface describes the parameters required when defining a benchmark driver.


Optional Element Summary
 String metric
          The default metric is "ops/sec".
 String name
          The driver's name, can be ignored for a single-driver benchmark.
 String opsUnit
          Unit of operation, in plural.
 String[] percentiles
          The percentiles to measure against.
 TimeUnit responseTimeUnit
          The time unit used for reporting response times.
 float threadPerScale
          The number of threads this driver should launch for each benchmark scale.
 

name

public abstract String name
The driver's name, can be ignored for a single-driver benchmark.

Default:
""

metric

public abstract String metric
The default metric is "ops/sec". Otherwise specify.

Default:
"ops/sec"

opsUnit

public abstract String opsUnit
Unit of operation, in plural.

Default:
"operations"

threadPerScale

public abstract float threadPerScale
The number of threads this driver should launch for each benchmark scale. The actual number of threads launched for this driver is a round(threadsPerScale x scale).

Default:
1.0f

percentiles

public abstract String[] percentiles
The percentiles to measure against. Overrides 90th% setting (old style). The percentiles must be numeric strings representing the percentiles of interest. The number must be greater than 0 and less than 100. Decimal digits can be used. The number may optionally have a suffix of 'th', 'st', 'nd', or 'rd' which will be used in the reporting. It can also end with the '%' sign. The following are valid percentiles.

Default:
{}

responseTimeUnit

public abstract TimeUnit responseTimeUnit
The time unit used for reporting response times.

Default:
java.util.concurrent.TimeUnit.SECONDS