Search in sources :

Example 61 with OptionsBuilder

use of org.openjdk.jmh.runner.options.OptionsBuilder in project useful-java-links by Vedenin.

the class ConvertBigStringToInputStreamBenchmark method main.

public static void main(String[] args) throws RunnerException {
    Options opt = new OptionsBuilder().include(ConvertStringToInputStreamBenchmark.class.getSimpleName()).timeUnit(TimeUnit.MICROSECONDS).warmupIterations(5).measurementIterations(50).forks(1).mode(Mode.AverageTime).build();
    new Runner(opt).run();
}
Also used : Options(org.openjdk.jmh.runner.options.Options) Runner(org.openjdk.jmh.runner.Runner) OptionsBuilder(org.openjdk.jmh.runner.options.OptionsBuilder)

Example 62 with OptionsBuilder

use of org.openjdk.jmh.runner.options.OptionsBuilder in project presto by prestodb.

the class BenchmarkOrcDecimalReader method main.

public static void main(String[] args) throws Throwable {
    // assure the benchmarks are valid before running
    BenchmarkData data = new BenchmarkData();
    data.setup();
    new BenchmarkOrcDecimalReader().readDecimal(data);
    Options options = new OptionsBuilder().verbosity(VerboseMode.NORMAL).include(".*" + BenchmarkOrcDecimalReader.class.getSimpleName() + ".*").build();
    new Runner(options).run();
}
Also used : Options(org.openjdk.jmh.runner.options.Options) Runner(org.openjdk.jmh.runner.Runner) OptionsBuilder(org.openjdk.jmh.runner.options.OptionsBuilder)

Example 63 with OptionsBuilder

use of org.openjdk.jmh.runner.options.OptionsBuilder in project presto by prestodb.

the class BenchmarkLongBitPacker method main.

public static void main(String[] args) throws Throwable {
    // assure the benchmarks are valid before running
    BenchmarkData data = new BenchmarkData();
    data.setup();
    new BenchmarkLongBitPacker().baselineLength256(data);
    Options options = new OptionsBuilder().verbosity(VerboseMode.NORMAL).include(".*" + BenchmarkLongBitPacker.class.getSimpleName() + ".*").build();
    new Runner(options).run();
}
Also used : Options(org.openjdk.jmh.runner.options.Options) Runner(org.openjdk.jmh.runner.Runner) OptionsBuilder(org.openjdk.jmh.runner.options.OptionsBuilder)

Example 64 with OptionsBuilder

use of org.openjdk.jmh.runner.options.OptionsBuilder in project presto by prestodb.

the class PageProcessorBenchmark method main.

public static void main(String[] args) throws RunnerException {
    Options options = new OptionsBuilder().verbosity(VerboseMode.NORMAL).include(".*" + PageProcessorBenchmark.class.getSimpleName() + ".*").build();
    new Runner(options).run();
}
Also used : Options(org.openjdk.jmh.runner.options.Options) Runner(org.openjdk.jmh.runner.Runner) OptionsBuilder(org.openjdk.jmh.runner.options.OptionsBuilder)

Example 65 with OptionsBuilder

use of org.openjdk.jmh.runner.options.OptionsBuilder 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();
}
Also used : Options(org.openjdk.jmh.runner.options.Options) Runner(org.openjdk.jmh.runner.Runner) OptionsBuilder(org.openjdk.jmh.runner.options.OptionsBuilder)

Aggregations

OptionsBuilder (org.openjdk.jmh.runner.options.OptionsBuilder)84 Runner (org.openjdk.jmh.runner.Runner)79 Options (org.openjdk.jmh.runner.options.Options)76 StackProfiler (org.openjdk.jmh.profile.StackProfiler)7 ChainedOptionsBuilder (org.openjdk.jmh.runner.options.ChainedOptionsBuilder)7 File (java.io.File)3 RunResult (org.openjdk.jmh.results.RunResult)3 ArrayList (java.util.ArrayList)2 GCProfiler (org.openjdk.jmh.profile.GCProfiler)2 LinuxPerfAsmProfiler (org.openjdk.jmh.profile.LinuxPerfAsmProfiler)2 LinuxPerfProfiler (org.openjdk.jmh.profile.LinuxPerfProfiler)2 GraknSystemProperty (ai.grakn.GraknSystemProperty)1 CacheAtomicityMode (org.apache.ignite.cache.CacheAtomicityMode)1 CacheWriteSynchronizationMode (org.apache.ignite.cache.CacheWriteSynchronizationMode)1 JmhIdeBenchmarkRunner (org.apache.ignite.internal.benchmarks.jmh.runner.JmhIdeBenchmarkRunner)1 Mode (org.openjdk.jmh.annotations.Mode)1 BenchmarkParams (org.openjdk.jmh.infra.BenchmarkParams)1 Result (org.openjdk.jmh.results.Result)1 RunnerException (org.openjdk.jmh.runner.RunnerException)1 Statistics (org.openjdk.jmh.util.Statistics)1