use of org.openjdk.jmh.runner.options.OptionsBuilder in project presto by prestodb.
the class BenchmarkDecimalOperators method main.
public static void main(String[] args) throws RunnerException {
Options options = new OptionsBuilder().verbosity(VerboseMode.NORMAL).include(".*" + BenchmarkDecimalOperators.class.getSimpleName() + ".*").build();
new Runner(options).run();
}
use of org.openjdk.jmh.runner.options.OptionsBuilder in project metrics by dropwizard.
the class MeterBenchmark method main.
public static void main(String[] args) throws RunnerException {
Options opt = new OptionsBuilder().include(".*" + MeterBenchmark.class.getSimpleName() + ".*").warmupIterations(3).measurementIterations(5).threads(4).forks(1).build();
new Runner(opt).run();
}
use of org.openjdk.jmh.runner.options.OptionsBuilder in project spring-data-mongodb by spring-projects.
the class AbstractMicrobenchmark method options.
/**
* Collect all options for the {@link Runner}.
*
* @param includes regex for matching benchmarks to be included in the run.
* @return never {@literal null}.
* @throws Exception
*/
protected ChainedOptionsBuilder options(String includes) throws Exception {
ChainedOptionsBuilder optionsBuilder = new OptionsBuilder().include(includes).jvmArgs(jvmArgs());
optionsBuilder = warmup(optionsBuilder);
optionsBuilder = measure(optionsBuilder);
optionsBuilder = forks(optionsBuilder);
optionsBuilder = report(optionsBuilder);
return optionsBuilder;
}
use of org.openjdk.jmh.runner.options.OptionsBuilder in project Chronicle-Queue by OpenHFT.
the class ChronicleQueueMicrobench method newOptionsBuilder.
// *************************************************************************
//
// *************************************************************************
private ChainedOptionsBuilder newOptionsBuilder() {
String className = getClass().getSimpleName();
final ChainedOptionsBuilder runnerOptions = new OptionsBuilder().include(".*" + className + ".*").jvmArgs(BASE_JVM_ARGS).jvmArgsAppend(jvmArgs());
if (getWarmupIterations() > 0) {
runnerOptions.warmupIterations(getWarmupIterations());
}
if (getMeasureIterations() > 0) {
runnerOptions.measurementIterations(getMeasureIterations());
}
if (null != getReportDir()) {
String filePath = getReportDir() + className + ".json";
File file = new File(filePath);
if (file.exists()) {
file.delete();
} else {
file.getParentFile().mkdirs();
// file.createNewFile();
}
runnerOptions.resultFormat(ResultFormatType.JSON);
runnerOptions.result(filePath);
}
return runnerOptions;
}
use of org.openjdk.jmh.runner.options.OptionsBuilder in project hive by apache.
the class MapJoinMultiKeyBench method main.
// -----------------------------------------------------------------------------------------------
public static void main(String[] args) throws RunnerException {
Options opt = new OptionsBuilder().include(".*" + MapJoinMultiKeyBench.class.getSimpleName() + ".*").build();
new Runner(opt).run();
}
Aggregations