Search in sources :

Example 26 with Options

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

the class LRUCacheBenchmark method main.

public static void main(String[] args) throws RunnerException {
    Options opt = new OptionsBuilder().include(LRUCacheBenchmark.class.getSimpleName()).forks(2).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 27 with Options

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

the class ConvertInputStreamToStringBenchmark method main.

public static void main(String[] args) throws Exception {
    ConvertInputStreamToStringBenchmark test = new ConvertInputStreamToStringBenchmark();
    System.out.println();
    System.out.println("1. apacheToInputStream : " + test.test1_apacheToInputStream().length());
    System.out.println("2. guavaCharStreams : " + test.test2_guavaCharStreams().length());
    System.out.println("3. jdkScanner : " + test.test3_jdkScanner().length());
    System.out.println("4. jdkJava8 : " + test.test4_jdkJava8().length());
    System.out.println("5. jdkJava8parallel : " + test.test5_jdkJava8parallel().length());
    System.out.println("6. inputStreamReaderAndStringBuilder : " + test.test6_inputStreamReaderAndStringBuilder().length());
    System.out.println("7. apacheStringWriterAndIOUtilsCopy : " + test.test7_apacheStringWriterAndIOUtilsCopy().length());
    System.out.println("8. readByteArrayOutputStream : " + test.test8_readByteArrayOutputStream().length());
    System.out.println("9. bufferedReaderReadLine : " + test.test9_bufferedReaderReadLine().length());
    System.out.println("10. bufferedInputStreamAndByteArrayOutputStream : " + test.test10_bufferedInputStreamAndByteArrayOutputStream().length());
    System.out.println("11. inputStreamReadAndStringBuilder : " + test.test11_inputStreamReadAndStringBuilder().length());
    System.out.println("12. test12_bufferedReaderReadLine2 : " + test.test12_bufferedReaderReadLine2().length());
    System.out.println();
    Options opt = new OptionsBuilder().include(ConvertInputStreamToStringBenchmark.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 28 with Options

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

the class ConvertInputStreamToStringBigBenchmark method main.

public static void main(String[] args) throws Exception {
    ConvertInputStreamToStringBigBenchmark test = new ConvertInputStreamToStringBigBenchmark();
    System.out.println();
    System.out.println("1. apacheToInputStream : " + test.apacheToInputStream().length());
    System.out.println("2. guavaCharStreams : " + test.guavaCharStreams().length());
    System.out.println("3. jdkScanner : " + test.jdkScanner().length());
    System.out.println("4. jdkJava8 : " + test.jdkJava8().length());
    System.out.println("5. jdkJava8parallel : " + test.jdkJava8parallel().length());
    System.out.println("6. inputStreamReaderAndStringBuilder : " + test.inputStreamReaderAndStringBuilder().length());
    System.out.println("7. apacheStringWriterAndIOUtilsCopy : " + test.apacheStringWriterAndIOUtilsCopy().length());
    System.out.println("8. readByteArrayOutputStream : " + test.readByteArrayOutputStream().length());
    System.out.println("9. bufferedReaderReadLine : " + test.bufferedReaderReadLine().length());
    System.out.println("10. bufferedInputStreamAndByteArrayOutputStream : " + test.bufferedInputStreamAndByteArrayOutputStream().length());
    System.out.println("11. inputStreamReadAndStringBuilder : " + test.inputStreamReadAndStringBuilder().length());
    System.out.println("12. test12_bufferedReaderReadLine2 : " + test.test12_bufferedReaderReadLine2().length());
    System.out.println();
    Options opt = new OptionsBuilder().include(ConvertInputStreamToStringBigBenchmark.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 29 with Options

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

the class FindCountOfOccurrencesBigBenchmark method main.

public static void main(String[] args) throws RunnerException {
    System.out.println("size" + testString.length());
    Options opt = new OptionsBuilder().include(FindCountOfOccurrencesBigBenchmark.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 30 with Options

use of org.openjdk.jmh.runner.options.Options in project druid by druid-io.

the class TimeParseBenchmark method main.

public static void main(String[] args) throws RunnerException {
    Options opt = new OptionsBuilder().include(TimeParseBenchmark.class.getSimpleName()).warmupIterations(1).measurementIterations(10).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)

Aggregations

Runner (org.openjdk.jmh.runner.Runner)76 Options (org.openjdk.jmh.runner.options.Options)76 OptionsBuilder (org.openjdk.jmh.runner.options.OptionsBuilder)76 StackProfiler (org.openjdk.jmh.profile.StackProfiler)6 GCProfiler (org.openjdk.jmh.profile.GCProfiler)2 LinuxPerfAsmProfiler (org.openjdk.jmh.profile.LinuxPerfAsmProfiler)2 LinuxPerfProfiler (org.openjdk.jmh.profile.LinuxPerfProfiler)2 RunResult (org.openjdk.jmh.results.RunResult)2 CacheAtomicityMode (org.apache.ignite.cache.CacheAtomicityMode)1 CacheWriteSynchronizationMode (org.apache.ignite.cache.CacheWriteSynchronizationMode)1 JmhIdeBenchmarkRunner (org.apache.ignite.internal.benchmarks.jmh.runner.JmhIdeBenchmarkRunner)1 Result (org.openjdk.jmh.results.Result)1 Statistics (org.openjdk.jmh.util.Statistics)1