public abstract class AbstractBenchmark extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractBenchmark(String benchmarkName,
int warmupIterations,
int measuredIterations) |
| Modifier and Type | Method and Description |
|---|---|
String |
getBenchmarkName() |
protected int |
getMeasuredIterations() |
protected int |
getWarmupIterations() |
void |
runBenchmark() |
void |
runBenchmark(BenchmarkResultHook benchmarkResultHook) |
protected abstract Map<String,Long> |
runOnce()
Runs the benchmark and returns the result metrics
|
protected void |
setUp()
Initialize any state necessary to run benchmark.
|
protected void |
tearDown()
Clean up any state from the benchmark.
|
protected AbstractBenchmark(String benchmarkName, int warmupIterations, int measuredIterations)
public String getBenchmarkName()
protected int getWarmupIterations()
protected int getMeasuredIterations()
protected void setUp()
protected abstract Map<String,Long> runOnce()
protected void tearDown()
public void runBenchmark()
public void runBenchmark(@Nullable BenchmarkResultHook benchmarkResultHook)
Copyright © 2012–2021. All rights reserved.