Search in sources :

Example 71 with Options

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

the class VectorGroupByOperatorBench method main.

/*
   * ============================== HOW TO RUN THIS TEST: ====================================
   *
   * You can run this test:
   *
   * a) Via the command line:
   *    $ mvn clean install
   *    $ java -jar target/benchmarks.jar VectorGroupByOperatorCountBench -prof perf     -f 1 (Linux)
   *    $ java -jar target/benchmarks.jar VectorGroupByOperatorCountBench -prof perfnorm -f 3 (Linux)
   *    $ java -jar target/benchmarks.jar VectorGroupByOperatorCountBench -prof perfasm  -f 1 (Linux)
   *    $ java -jar target/benchmarks.jar VectorGroupByOperatorCountBench -prof gc  -f 1 (allocation counting via gc)
   *    $ java -jar target/benchmarks.jar VectorGroupByOperatorBench -p hasNulls=true -p isRepeating=false -p aggregation=bloom_filter  -p processMode=HASH -p evalMode=PARTIAL1
   *    $ java -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:6006,suspend=y,server=y -jar target/benchmarks.jar VectorGroupByOperatorBench
   */
public static void main(String[] args) throws RunnerException {
    Options opt = new OptionsBuilder().include(VectorGroupByOperatorBench.class.getSimpleName()).addProfiler(LinuxPerfProfiler.class).addProfiler(LinuxPerfNormProfiler.class).addProfiler(LinuxPerfAsmProfiler.class).build();
    new Runner(opt).run();
}
Also used : Options(org.openjdk.jmh.runner.options.Options) Runner(org.openjdk.jmh.runner.Runner) LinuxPerfProfiler(org.openjdk.jmh.profile.LinuxPerfProfiler) LinuxPerfAsmProfiler(org.openjdk.jmh.profile.LinuxPerfAsmProfiler) OptionsBuilder(org.openjdk.jmh.runner.options.OptionsBuilder)

Example 72 with Options

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

the class JmhCacheLocksBenchmark method main.

/**
 * Run benchmarks.
 *
 * @param args Arguments.
 * @throws Exception If failed.
 */
public static void main(String[] args) throws Exception {
    final String simpleClsName = JmhCacheLocksBenchmark.class.getSimpleName();
    final int threads = 4;
    final boolean client = true;
    final CacheAtomicityMode atomicityMode = CacheAtomicityMode.TRANSACTIONAL;
    final CacheWriteSynchronizationMode writeSyncMode = CacheWriteSynchronizationMode.FULL_SYNC;
    final String output = simpleClsName + "-" + threads + "-threads" + "-" + (client ? "client" : "data") + "-" + atomicityMode + "-" + writeSyncMode;
    final Options opt = new OptionsBuilder().threads(threads).include(simpleClsName).output(output + ".jmh.log").jvmArgs("-Xms1g", "-Xmx1g", "-XX:+UnlockCommercialFeatures", JmhIdeBenchmarkRunner.createProperty(PROP_ATOMICITY_MODE, atomicityMode), JmhIdeBenchmarkRunner.createProperty(PROP_WRITE_SYNC_MODE, writeSyncMode), JmhIdeBenchmarkRunner.createProperty(PROP_DATA_NODES, 4), JmhIdeBenchmarkRunner.createProperty(PROP_CLIENT_MODE, client)).build();
    new Runner(opt).run();
}
Also used : Options(org.openjdk.jmh.runner.options.Options) JmhIdeBenchmarkRunner(org.apache.ignite.internal.benchmarks.jmh.runner.JmhIdeBenchmarkRunner) Runner(org.openjdk.jmh.runner.Runner) CacheWriteSynchronizationMode(org.apache.ignite.cache.CacheWriteSynchronizationMode) CacheAtomicityMode(org.apache.ignite.cache.CacheAtomicityMode) OptionsBuilder(org.openjdk.jmh.runner.options.OptionsBuilder)

Example 73 with Options

use of org.openjdk.jmh.runner.options.Options in project metrics by dropwizard.

the class CounterBenchmark method main.

public static void main(String[] args) throws RunnerException {
    Options opt = new OptionsBuilder().include(".*" + CounterBenchmark.class.getSimpleName() + ".*").warmupIterations(3).measurementIterations(5).threads(4).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)

Example 74 with Options

use of org.openjdk.jmh.runner.options.Options in project metrics by dropwizard.

the class ReservoirBenchmark method main.

public static void main(String[] args) throws RunnerException {
    Options opt = new OptionsBuilder().include(".*" + ReservoirBenchmark.class.getSimpleName() + ".*").warmupIterations(10).measurementIterations(10).addProfiler(GCProfiler.class).measurementTime(TimeValue.seconds(3)).timeUnit(TimeUnit.MICROSECONDS).mode(Mode.AverageTime).threads(4).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)

Example 75 with Options

use of org.openjdk.jmh.runner.options.Options in project metrics by dropwizard.

the class SlidingTimeWindowReservoirsBenchmark method main.

public static void main(String[] args) throws RunnerException {
    Options opt = new OptionsBuilder().include(".*" + SlidingTimeWindowReservoirsBenchmark.class.getSimpleName() + ".*").warmupIterations(10).measurementIterations(10).addProfiler(GCProfiler.class).measurementTime(TimeValue.seconds(3)).timeUnit(TimeUnit.MICROSECONDS).mode(Mode.AverageTime).forks(1).build();
    new Runner(opt).run();
}
Also used : Options(org.openjdk.jmh.runner.options.Options) GCProfiler(org.openjdk.jmh.profile.GCProfiler) 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