Search in sources :

Example 51 with OptionsBuilder

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

the class LocatorBenchmark method main.

public static void main(final String[] args) throws Exception {
    final Options opt = new OptionsBuilder().include(LocatorBenchmark.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)

Example 52 with OptionsBuilder

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

the class HelloWorldBenchmark method main.

public static void main(final String[] args) throws Exception {
    final Options opt = new OptionsBuilder().include(HelloWorldBenchmark.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)

Example 53 with OptionsBuilder

use of org.openjdk.jmh.runner.options.OptionsBuilder in project hive by apache.

the class LazySimpleSerDeBench method main.

public static void main(String[] args) throws RunnerException {
    Options opt = new OptionsBuilder().include(".*" + LazySimpleSerDeBench.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)

Example 54 with OptionsBuilder

use of org.openjdk.jmh.runner.options.OptionsBuilder in project h2o-3 by h2oai.

the class KeyEqualsBench method main.

public static void main(String[] args) throws RunnerException {
    Options opt = new OptionsBuilder().include(KeyEqualsBench.class.getSimpleName()).addProfiler(StackProfiler.class).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) StackProfiler(org.openjdk.jmh.profile.StackProfiler)

Example 55 with OptionsBuilder

use of org.openjdk.jmh.runner.options.OptionsBuilder in project cassandra by apache.

the class MutationBench method main.

public static void main(String... args) throws Exception {
    Options opts = new OptionsBuilder().include(".*" + MutationBench.class.getSimpleName() + ".*").jvmArgs("-server").forks(1).mode(Mode.Throughput).addProfiler(StackProfiler.class).build();
    Collection<RunResult> records = new Runner(opts).run();
    for (RunResult result : records) {
        Result r = result.getPrimaryResult();
        System.out.println("API replied benchmark score: " + r.getScore() + " " + r.getScoreUnit() + " over " + r.getStatistics().getN() + " iterations");
    }
}
Also used : Options(org.openjdk.jmh.runner.options.Options) Runner(org.openjdk.jmh.runner.Runner) RunResult(org.openjdk.jmh.results.RunResult) OptionsBuilder(org.openjdk.jmh.runner.options.OptionsBuilder) StackProfiler(org.openjdk.jmh.profile.StackProfiler) RunResult(org.openjdk.jmh.results.RunResult) Result(org.openjdk.jmh.results.Result)

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