use of org.openjdk.jmh.runner.options.OptionsBuilder in project useful-java-links by Vedenin.
the class FindCountOfOccurrencesBigBenchmark method main.
public static void main(String[] args) throws RunnerException {
System.out.println("size" + testString.length());
Options opt = new OptionsBuilder().include(FindCountOfOccurrencesBigBenchmark.class.getSimpleName()).build();
new Runner(opt).run();
}
use of org.openjdk.jmh.runner.options.OptionsBuilder in project netty by netty.
the class AbstractMicrobenchmarkBase method newOptionsBuilder.
protected ChainedOptionsBuilder newOptionsBuilder() throws Exception {
String className = getClass().getSimpleName();
ChainedOptionsBuilder runnerOptions = new OptionsBuilder().include(".*" + className + ".*").jvmArgs(jvmArgs());
if (getWarmupIterations() > 0) {
runnerOptions.warmupIterations(getWarmupIterations());
}
if (getMeasureIterations() > 0) {
runnerOptions.measurementIterations(getMeasureIterations());
}
if (getReportDir() != null) {
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 druid by druid-io.
the class TimeParseBenchmark method main.
public static void main(String[] args) throws RunnerException {
Options opt = new OptionsBuilder().include(TimeParseBenchmark.class.getSimpleName()).warmupIterations(1).measurementIterations(10).forks(1).build();
new Runner(opt).run();
}
use of org.openjdk.jmh.runner.options.OptionsBuilder in project druid by druid-io.
the class FlattenJSONBenchmark method main.
public static void main(String[] args) throws RunnerException {
Options opt = new OptionsBuilder().include(FlattenJSONBenchmark.class.getSimpleName()).warmupIterations(1).measurementIterations(25).forks(1).build();
new Runner(opt).run();
}
use of org.openjdk.jmh.runner.options.OptionsBuilder in project zipkin by openzipkin.
the class UtilBenchmarks method main.
// Convenience main entry-point
public static void main(String[] args) throws RunnerException {
Options opt = new OptionsBuilder().include(".*" + UtilBenchmarks.class.getSimpleName() + ".*").build();
new Runner(opt).run();
}
Aggregations