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();
}
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();
}
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();
}
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();
}
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();
}
Aggregations