Package org.openjdk.jmh.runner
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 long
private long
protected final Options
protected final OutputFormat
private long
private long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
doSingle
(BenchmarkParams params, ActionMode mode, IterationResultAcceptor acceptor) private long
protected void
etaAfterBenchmark
(BenchmarkParams params) protected void
protected void
protected void
etaBeforeBenchmarks
(Collection<ActionPlan> plans) private String
formatDuration
(long nanos) protected void
runBenchmark
(BenchmarkParams benchParams, BenchmarkHandler handler, IterationResultAcceptor acceptor) (package private) void
runBenchmark
(BenchmarkParams benchParams, IterationResultAcceptor acceptor) protected Multimap
<BenchmarkParams, BenchmarkResult> runBenchmarksEmbedded
(ActionPlan actionPlan) protected void
runBenchmarksForked
(ActionPlan actionPlan, IterationResultAcceptor acceptor) boolean
Execute 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
-