use of org.openjdk.jmh.runner.Runner in project zipkin by openzipkin.
the class ElasticsearchBenchmarks method main.
// Convenience main entry-point
public static void main(String[] args) throws RunnerException {
if (!new String(prefix_byteArray("{\"count\":1}".getBytes(UTF_8)), UTF_8).equals("{\"timestamp_millis\":" + Long.toString(TIMESTAMP_MILLIS) + ",\"count\":1}")) {
throw new IllegalStateException("buggy code");
}
if (!new String(prefix_channelBuffer("{\"count\":1}".getBytes(UTF_8)).toByteBuffer().array(), UTF_8).equals("{\"timestamp_millis\":" + Long.toString(TIMESTAMP_MILLIS) + ",\"count\":1}")) {
throw new IllegalStateException("buggy code");
}
Options opt = new OptionsBuilder().include(".*" + ElasticsearchBenchmarks.class.getSimpleName() + ".*").build();
new Runner(opt).run();
}
use of org.openjdk.jmh.runner.Runner in project zipkin by openzipkin.
the class MetricsBenchmarks method main.
// Convenience main entry-point
public static void main(String[] args) throws RunnerException {
Options opt = new OptionsBuilder().include(".*" + MetricsBenchmarks.class.getSimpleName() + ".*").threads(40).build();
new Runner(opt).run();
}
use of org.openjdk.jmh.runner.Runner in project presto by prestodb.
the class BenchmarkDecimalAggregation method main.
public static void main(String[] args) throws RunnerException {
Options options = new OptionsBuilder().verbosity(VerboseMode.NORMAL).include(".*" + BenchmarkDecimalAggregation.class.getSimpleName() + ".*").build();
new Runner(options).run();
}
use of org.openjdk.jmh.runner.Runner in project presto by prestodb.
the class BenchmarkResourceGroup method main.
public static void main(String[] args) throws Throwable {
Options options = new OptionsBuilder().verbosity(VerboseMode.NORMAL).include(".*" + BenchmarkResourceGroup.class.getSimpleName() + ".*").build();
new Runner(options).run();
}
use of org.openjdk.jmh.runner.Runner in project presto by prestodb.
the class BenchmarkBigIntOperators method main.
public static void main(String[] args) throws Throwable {
Options options = new OptionsBuilder().verbosity(VerboseMode.NORMAL).include(".*" + BenchmarkBigIntOperators.class.getSimpleName() + ".*").build();
new Runner(options).run();
}
Aggregations