Search in sources :

Example 66 with Options

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

the class IterateThroughHashMapTest method main.

public static void main(String[] args) throws RunnerException {
    Options opt = new OptionsBuilder().include(IterateThroughHashMapTest.class.getSimpleName()).timeUnit(TimeUnit.MICROSECONDS).warmupIterations(3).measurementIterations(5).param("size", "100", /*"500","900","1300","1700","2100","2500","5000","10000","15000","20000","25000" ,*/
    "30000").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 67 with Options

use of org.openjdk.jmh.runner.options.Options 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 68 with Options

use of org.openjdk.jmh.runner.options.Options in project poi by apache.

the class AddImageBench method main.

public static void main(String[] args) throws RunnerException {
    Options opt = new OptionsBuilder().include(".*" + AddImageBench.class.getSimpleName() + ".*").addProfiler(StackProfiler.class).addProfiler(GCProfiler.class).forks(1).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)

Aggregations

Runner (org.openjdk.jmh.runner.Runner)68 Options (org.openjdk.jmh.runner.options.Options)68 OptionsBuilder (org.openjdk.jmh.runner.options.OptionsBuilder)68 StackProfiler (org.openjdk.jmh.profile.StackProfiler)6 RunResult (org.openjdk.jmh.results.RunResult)2 GCProfiler (org.openjdk.jmh.profile.GCProfiler)1 Result (org.openjdk.jmh.results.Result)1 Statistics (org.openjdk.jmh.util.Statistics)1