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.
 TimeUnit responseTimeUnit
          The time unit used for reporting response times.
 int 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 int threadPerScale
The number of threads this driver should launch for each benchmark scale.

Default:
1

responseTimeUnit

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

Default:
java.util.concurrent.TimeUnit.SECONDS