|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.carrotsearch.junitbenchmarks.BenchmarkOptionsSystemProperties
public final class BenchmarkOptionsSystemProperties
Global settings for benchmarks set through system properties. If
IGNORE_ANNOTATION_OPTIONS_PROPERTY is specified, the system properties and
defaults will take precedence over the method- and class-level annotations.
| Field Summary | |
|---|---|
static String |
BENCHMARK_ROUNDS_PROPERTY
"jub.rounds.benchmark": the default number of benchmark rounds. |
static String |
CHARTS_DIR_PROPERTY
"jub.charts.dir": output directory for benchmark charts if H2Consumer
is active and chart annotations are present. |
static String |
CONCURRENCY_PROPERTY
"jub.concurrency": the default number of threads. |
static String |
CONSUMERS_PROPERTY
"jub.consumers": specifies the consumers to instantiate and add to the
benchmark results feed. |
static String |
CUSTOMKEY_PROPERTY
"jub.customkey": custom key to attach to the run. |
static String |
DB_FILE_PROPERTY
"jub.db.file": if set, an H2Consumer is added to the consumers list
and benchmark results are saved to a database. |
static String |
IGNORE_ANNOTATION_OPTIONS_PROPERTY
"jub.ignore.annotations": if true, the defaults (or property values) take precedence over
BenchmarkOptions annotations. |
static String |
IGNORE_CALLGC_PROPERTY
"jub.ignore.callgc": if true, do not call System.gc()
between rounds. |
static String |
MYSQL_URL_PROPERTY
"jub.mysql.url": if set, an MySQLConsumer is added to the
consumers list and benchmarks results are saved to a database. |
static String |
WARMUP_ROUNDS_PROPERTY
"jub.rounds.warmup": the default number of warmup rounds. |
static String |
XML_FILE_PROPERTY
"jub.xml.file": if set, an XMLConsumer is added to the consumers list. |
| Constructor Summary | |
|---|---|
BenchmarkOptionsSystemProperties()
|
|
| Method Summary | |
|---|---|
static IResultsConsumer[] |
getDefaultConsumers()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String WARMUP_ROUNDS_PROPERTY
"jub.rounds.warmup": the default number of warmup rounds.
public static final String BENCHMARK_ROUNDS_PROPERTY
"jub.rounds.benchmark": the default number of benchmark rounds.
public static final String CONCURRENCY_PROPERTY
"jub.concurrency": the default number of threads.
public static final String IGNORE_ANNOTATION_OPTIONS_PROPERTY
"jub.ignore.annotations": if true, the defaults (or property values) take precedence over
BenchmarkOptions annotations.
public static final String IGNORE_CALLGC_PROPERTY
"jub.ignore.callgc": if true, do not call System.gc()
between rounds. Speeds up tests a lot, but renders GC statistics useless.
public static final String XML_FILE_PROPERTY
"jub.xml.file": if set, an XMLConsumer is added to the consumers list.
public static final String DB_FILE_PROPERTY
"jub.db.file": if set, an H2Consumer is added to the consumers list
and benchmark results are saved to a database. This property must point to the
H2 database file's location (without .h2.db suffix). If the database does
not exist, it will be created.
public static final String MYSQL_URL_PROPERTY
"jub.mysql.url": if set, an MySQLConsumer is added to the
consumers list and benchmarks results are saved to a database. This
property must point to the mysql server instance and include all the
necessary connection/authentication information.
public static final String CHARTS_DIR_PROPERTY
"jub.charts.dir": output directory for benchmark charts if H2Consumer
is active and chart annotations are present. If not present, the current working
directory is used.
public static final String CUSTOMKEY_PROPERTY
"jub.customkey": custom key to attach to the run.
public static final String CONSUMERS_PROPERTY
"jub.consumers": specifies the consumers to instantiate and add to the
benchmark results feed. This property takes a comma-separated list of values
from ConsumerName.
| Constructor Detail |
|---|
public BenchmarkOptionsSystemProperties()
| Method Detail |
|---|
public static IResultsConsumer[] getDefaultConsumers()
IResultsConsumer.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||