use of org.openjdk.jmh.runner.options.Options in project zipkin by openzipkin.
the class SpanBenchmarks method main.
// Convenience main entry-point
public static void main(String[] args) throws RunnerException {
Options opt = new OptionsBuilder().include(".*" + SpanBenchmarks.class.getSimpleName() + ".*").build();
new Runner(opt).run();
}
use of org.openjdk.jmh.runner.options.Options in project presto by prestodb.
the class HiveFileFormatBenchmark method main.
public static void main(String[] args) throws Exception {
Options opt = new OptionsBuilder().include(".*\\." + HiveFileFormatBenchmark.class.getSimpleName() + ".*").jvmArgsAppend("-Xmx4g", "-Xms4g", "-XX:+UseG1GC").build();
Collection<RunResult> results = new Runner(opt).run();
for (RunResult result : results) {
Statistics inputSizeStats = result.getSecondaryResults().get("inputSize").getStatistics();
Statistics outputSizeStats = result.getSecondaryResults().get("outputSize").getStatistics();
double compressionRatio = 1.0 * inputSizeStats.getSum() / outputSizeStats.getSum();
String compression = result.getParams().getParam("compression");
String fileFormat = result.getParams().getParam("fileFormat");
String dataSet = result.getParams().getParam("dataSet");
System.out.printf(" %-10s %-30s %-10s %-25s %2.2f %10s ± %11s (%5.2f%%) (N = %d, α = 99.9%%)\n", result.getPrimaryResult().getLabel(), dataSet, compression, fileFormat, compressionRatio, toHumanReadableSpeed((long) inputSizeStats.getMean()), toHumanReadableSpeed((long) inputSizeStats.getMeanErrorAt(0.999)), inputSizeStats.getMeanErrorAt(0.999) * 100 / inputSizeStats.getMean(), inputSizeStats.getN());
}
System.out.println();
}
use of org.openjdk.jmh.runner.options.Options in project presto by prestodb.
the class BenchmarkPageProcessor method main.
public static void main(String[] args) throws RunnerException {
new BenchmarkPageProcessor().setup();
Options options = new OptionsBuilder().verbosity(VerboseMode.NORMAL).include(".*" + BenchmarkPageProcessor.class.getSimpleName() + ".*").build();
new Runner(options).run();
}
use of org.openjdk.jmh.runner.options.Options in project presto by prestodb.
the class InCodeGeneratorBenchmark method main.
public static void main(String[] args) throws RunnerException {
Options options = new OptionsBuilder().verbosity(VerboseMode.NORMAL).include(".*" + InCodeGeneratorBenchmark.class.getSimpleName() + ".*").build();
new Runner(options).run();
}
use of org.openjdk.jmh.runner.options.Options 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();
}
Aggregations