use of org.openjdk.jmh.runner.Runner 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");
}
}
use of org.openjdk.jmh.runner.Runner in project hazelcast by hazelcast.
the class DefaultPortableReaderPerformanceTest method main.
public static void main(String[] args) throws RunnerException {
Options opt = new OptionsBuilder().include(DefaultPortableReaderPerformanceTest.class.getSimpleName()).warmupIterations(WARMUP_ITERATIONS_COUNT).warmupTime(TimeValue.milliseconds(2)).measurementIterations(MEASUREMENT_ITERATIONS_COUNT).measurementTime(TimeValue.milliseconds(2)).verbosity(VerboseMode.NORMAL).forks(1).build();
new Runner(opt).run();
}
use of org.openjdk.jmh.runner.Runner in project hazelcast by hazelcast.
the class QueryPerformanceTest method main.
public static void main(String[] args) throws RunnerException {
Options opt = new OptionsBuilder().include(QueryPerformanceTest.class.getSimpleName()).warmupIterations(WARMUP_ITERATIONS_COUNT).warmupTime(TimeValue.milliseconds(2)).measurementIterations(MEASUREMENT_ITERATIONS_COUNT).measurementTime(TimeValue.milliseconds(2)).verbosity(VerboseMode.NORMAL).forks(1).build();
new Runner(opt).run();
}
use of org.openjdk.jmh.runner.Runner in project useful-java-links by Vedenin.
the class ConvertStringToInputStreamBenchmark method main.
public static void main(String[] args) throws RunnerException {
Options opt = new OptionsBuilder().include(ConvertStringToInputStreamBenchmark.class.getSimpleName()).build();
new Runner(opt).run();
}
use of org.openjdk.jmh.runner.Runner in project useful-java-links by Vedenin.
the class FindCountOfOccurrencesBenchmark method main.
public static void main(String[] args) throws RunnerException {
Options opt = new OptionsBuilder().include(FindCountOfOccurrencesBenchmark.class.getSimpleName()).build();
new Runner(opt).run();
}
Aggregations