Package io.trino.benchmark
Class AbstractBenchmark
java.lang.Object
io.trino.benchmark.AbstractBenchmark
- Direct Known Subclasses:
AbstractOperatorBenchmark
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractBenchmark(String benchmarkName, int warmupIterations, int measuredIterations) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidrunBenchmark(BenchmarkResultHook benchmarkResultHook) runOnce()Runs the benchmark and returns the result metricsprotected voidsetUp()Initialize any state necessary to run benchmark.protected voidtearDown()Clean up any state from the benchmark.
-
Constructor Details
-
AbstractBenchmark
-
-
Method Details
-
getBenchmarkName
-
setUp
protected void setUp()Initialize any state necessary to run benchmark. This is run once at start up. -
runOnce
Runs the benchmark and returns the result metrics -
tearDown
protected void tearDown()Clean up any state from the benchmark. This is run once after all the iterations are complete. -
runBenchmark
public void runBenchmark() -
runBenchmark
-