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