public class AbstractGraphBenchmark extends AbstractBenchmarkBase
AbstractGraphBenchmark
. Annotating your benchmark class with LoadGraphWith
will load the TinkerGraph
instance with the desired data set.Modifier and Type | Field and Description |
---|---|
protected GraphTraversalSource |
g |
protected Graph |
graph |
DEFAULT_BENCHMARK_DIRECTORY, DEFAULT_FORKS, DEFAULT_MEASURE_ITERATIONS, DEFAULT_WARMUP_ITERATIONS, JVM_ARGS
Constructor and Description |
---|
AbstractGraphBenchmark() |
Modifier and Type | Method and Description |
---|---|
void |
prepare()
Opens a new
TinkerGraph instance and optionally preloads it with one of the test data sets enumerated
in LoadGraphWith . |
getForks, getMeasureIterations, getReportDir, getWarmupIterations, run
protected Graph graph
protected GraphTraversalSource g
public void prepare() throws IOException
TinkerGraph
instance and optionally preloads it with one of the test data sets enumerated
in LoadGraphWith
.IOException
- on failure to load graphCopyright © 2013–2016 Apache Software Foundation. All rights reserved.