public class Runner extends Object
Modifier and Type | Field | Description |
---|---|---|
protected Options |
options |
|
protected OutputFormat |
out |
Constructor | Description |
---|---|
Runner(Options options) |
Create Runner with the given options.
|
Runner(Options options,
OutputFormat format) |
Create runner with the custom OutputFormat.
|
Modifier and Type | Method | Description |
---|---|---|
protected void |
etaAfterBenchmark(BenchmarkParams params) |
|
protected void |
etaAfterBenchmarks() |
|
protected void |
etaBeforeBenchmark() |
|
protected void |
etaBeforeBenchmarks(Collection<ActionPlan> plans) |
|
void |
list() |
Print matching benchmarks into output.
|
void |
listWithParams(CommandLineOptions options) |
Print matching benchmarks with parameters into output.
|
Collection<RunResult> |
run() |
Run benchmarks.
|
protected void |
runBenchmark(BenchmarkParams benchParams,
org.openjdk.jmh.runner.BenchmarkHandler handler,
org.openjdk.jmh.runner.IterationResultAcceptor acceptor) |
|
protected Multimap<BenchmarkParams,BenchmarkResult> |
runBenchmarksEmbedded(ActionPlan actionPlan) |
|
protected void |
runBenchmarksForked(ActionPlan actionPlan,
org.openjdk.jmh.runner.IterationResultAcceptor acceptor) |
|
RunResult |
runSingle() |
Shortcut method for the single benchmark execution.
|
boolean |
runSystemGC() |
Execute System.gc() if we the System.gc option is set.
|
protected final Options options
protected final OutputFormat out
public Runner(Options options, OutputFormat format)
options
- options to useformat
- OutputFormat to usepublic Runner(Options options)
OutputFormat
as
mandated by options.options
- options to use.public void list()
public void listWithParams(CommandLineOptions options)
options
- public RunResult runSingle() throws RunnerException
RunnerException
- if more than one benchmark is found, or no results are returnedpublic Collection<RunResult> run() throws RunnerException
RunnerException
- if something goes wrongprotected void runBenchmarksForked(ActionPlan actionPlan, org.openjdk.jmh.runner.IterationResultAcceptor acceptor)
protected Multimap<BenchmarkParams,BenchmarkResult> runBenchmarksEmbedded(ActionPlan actionPlan)
protected void etaAfterBenchmark(BenchmarkParams params)
protected void etaBeforeBenchmarks(Collection<ActionPlan> plans)
protected void etaBeforeBenchmark()
protected void etaAfterBenchmarks()
protected void runBenchmark(BenchmarkParams benchParams, org.openjdk.jmh.runner.BenchmarkHandler handler, org.openjdk.jmh.runner.IterationResultAcceptor acceptor)
public boolean runSystemGC()
Copyright © 2012-2016 Oracle. All Rights Reserved.