public final class BenchmarkOptionsSystemProperties extends Object
IGNORE_ANNOTATION_OPTIONS_PROPERTY
is specified, the system properties and
defaults will take precedence over the method- and class-level annotations.Modifier and Type | Field and Description |
---|---|
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
|
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 and Description |
---|
BenchmarkOptionsSystemProperties() |
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 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
.public static IResultsConsumer[] getDefaultConsumers()
IResultsConsumer
.Copyright © 2013 Carrot Search s.c.. All Rights Reserved.