Class BaseRunner
java.lang.Object
org.openjdk.jmh.runner.BaseRunner
- Direct Known Subclasses:
ForkedRunner, Runner
Abstract runner, the base class for Runner and ForkedRunner.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate longprivate longprotected final Optionsprotected final OutputFormatprivate longprivate long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voiddoSingle(BenchmarkParams params, ActionMode mode, IterationResultAcceptor acceptor) private longprotected voidetaAfterBenchmark(BenchmarkParams params) protected voidprotected voidprotected voidetaBeforeBenchmarks(Collection<ActionPlan> plans) private StringformatDuration(long nanos) protected voidrunBenchmark(BenchmarkParams benchParams, BenchmarkHandler handler, IterationResultAcceptor acceptor) (package private) voidrunBenchmark(BenchmarkParams benchParams, IterationResultAcceptor acceptor) protected Multimap<BenchmarkParams, BenchmarkResult> runBenchmarksEmbedded(ActionPlan actionPlan) protected voidrunBenchmarksForked(ActionPlan actionPlan, IterationResultAcceptor acceptor) booleanExecute System.gc() if we the System.gc option is set.
-
Field Details
-
projectedTotalTime
private long projectedTotalTime -
projectedRunningTime
private long projectedRunningTime -
actualRunningTime
private long actualRunningTime -
benchmarkStart
private long benchmarkStart -
options
-
out
-
-
Constructor Details
-
BaseRunner
-
-
Method Details
-
runBenchmarksForked
-
runBenchmarksEmbedded
-
doSingle
-
etaAfterBenchmark
-
etaBeforeBenchmarks
-
estimateTimeSingleFork
-
etaBeforeBenchmark
protected void etaBeforeBenchmark() -
etaAfterBenchmarks
protected void etaAfterBenchmarks() -
formatDuration
-
runBenchmark
-
runBenchmark
protected void runBenchmark(BenchmarkParams benchParams, BenchmarkHandler handler, IterationResultAcceptor acceptor) -
runSystemGC
public boolean runSystemGC()Execute System.gc() if we the System.gc option is set.- Returns:
- true if we did
-