org.openjdk.jmh.runner.options.WarmupMode Java Examples

The following examples show how to use org.openjdk.jmh.runner.options.WarmupMode. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BenchmarkPlanner.java    From presto with Apache License 2.0 6 votes vote down vote up
public static void main(String[] args)
        throws Exception
{
    // assure the benchmarks are valid before running
    BenchmarkData data = new BenchmarkData();
    data.setup();
    try {
        new BenchmarkPlanner().planQueries(data);
    }
    finally {
        data.tearDown();
    }

    Options options = new OptionsBuilder()
            .verbosity(VerboseMode.NORMAL)
            .warmupMode(WarmupMode.BULK)
            .include(".*" + BenchmarkPlanner.class.getSimpleName() + ".*")
            .build();
    new Runner(options).run();
}
 
Example #2
Source File: BenchmarkArrayAggregation.java    From presto with Apache License 2.0 5 votes vote down vote up
public static void main(String[] args)
        throws Exception
{
    // assure the benchmarks are valid before running
    BenchmarkData data = new BenchmarkData();
    data.setup();
    new BenchmarkArrayAggregation().arrayAggregation(data);

    Options options = new OptionsBuilder()
            .verbosity(VerboseMode.NORMAL)
            .warmupMode(WarmupMode.BULK)
            .include(".*" + BenchmarkArrayAggregation.class.getSimpleName() + ".*")
            .build();
    new Runner(options).run();
}
 
Example #3
Source File: BenchmarkMapConcat.java    From presto with Apache License 2.0 5 votes vote down vote up
public static void main(String[] args)
        throws Exception
{
    // assure the benchmarks are valid before running
    BenchmarkData data = new BenchmarkData();
    data.setup();
    new BenchmarkMapConcat().mapConcat(data);

    Options options = new OptionsBuilder()
            .verbosity(VerboseMode.NORMAL)
            .warmupMode(WarmupMode.INDI)
            .include(".*" + BenchmarkMapConcat.class.getSimpleName() + ".*")
            .build();
    new Runner(options).run();
}
 
Example #4
Source File: BenchmarkArrayHashCodeOperator.java    From presto with Apache License 2.0 5 votes vote down vote up
public static void main(String[] args)
        throws Exception
{
    // assure the benchmarks are valid before running
    BenchmarkData data = new BenchmarkData();
    data.setup();
    new BenchmarkArrayHashCodeOperator().arrayHashCode(data);

    Options options = new OptionsBuilder()
            .verbosity(VerboseMode.NORMAL)
            .warmupMode(WarmupMode.BULK)
            .include(".*" + BenchmarkArrayHashCodeOperator.class.getSimpleName() + ".*")
            .build();
    new Runner(options).run();
}
 
Example #5
Source File: BenchmarkMapSubscript.java    From presto with Apache License 2.0 5 votes vote down vote up
public static void main(String[] args)
        throws Exception
{
    // assure the benchmarks are valid before running
    BenchmarkData data = new BenchmarkData();
    data.setup();
    new BenchmarkMapSubscript().mapSubscript(data);

    Options options = new OptionsBuilder()
            .verbosity(VerboseMode.NORMAL)
            .warmupMode(WarmupMode.INDI)
            .include(".*" + BenchmarkMapSubscript.class.getSimpleName() + ".*")
            .build();
    new Runner(options).run();
}
 
Example #6
Source File: BenchmarkTransformValue.java    From presto with Apache License 2.0 5 votes vote down vote up
public static void main(String[] args)
        throws Exception
{
    // assure the benchmarks are valid before running
    BenchmarkData data = new BenchmarkData();
    data.setup();
    new BenchmarkTransformValue().benchmark(data);

    Options options = new OptionsBuilder()
            .verbosity(VerboseMode.NORMAL)
            .warmupMode(WarmupMode.BULK)
            .include(".*" + BenchmarkTransformValue.class.getSimpleName() + ".*")
            .build();
    new Runner(options).run();
}
 
Example #7
Source File: BenchmarkJsonToMapCast.java    From presto with Apache License 2.0 5 votes vote down vote up
public static void main(String[] args)
        throws Exception
{
    // assure the benchmarks are valid before running
    BenchmarkData data = new BenchmarkData();
    data.setup();
    new BenchmarkJsonToMapCast().benchmark(data);

    Options options = new OptionsBuilder()
            .verbosity(VerboseMode.NORMAL)
            .include(".*" + BenchmarkJsonToMapCast.class.getSimpleName() + ".*")
            .warmupMode(WarmupMode.BULK_INDI)
            .build();
    new Runner(options).run();
}
 
Example #8
Source File: BenchmarkMapToMapCast.java    From presto with Apache License 2.0 5 votes vote down vote up
public static void main(String[] args)
        throws Exception
{
    // assure the benchmarks are valid before running
    BenchmarkData data = new BenchmarkData();
    data.setup();
    new BenchmarkMapToMapCast().benchmark(data);

    Options options = new OptionsBuilder()
            .verbosity(VerboseMode.NORMAL)
            .warmupMode(WarmupMode.INDI)
            .include(".*" + BenchmarkMapToMapCast.class.getSimpleName() + ".*")
            .build();
    new Runner(options).run();
}
 
Example #9
Source File: BenchmarkTransformKey.java    From presto with Apache License 2.0 5 votes vote down vote up
public static void main(String[] args)
        throws Exception
{
    // assure the benchmarks are valid before running
    BenchmarkData data = new BenchmarkData();
    data.setup();
    new BenchmarkTransformKey().benchmark(data);

    Options options = new OptionsBuilder()
            .verbosity(VerboseMode.NORMAL)
            .warmupMode(WarmupMode.BULK)
            .include(".*" + BenchmarkTransformKey.class.getSimpleName() + ".*")
            .build();
    new Runner(options).run();
}
 
Example #10
Source File: BenchmarkArraySubscript.java    From presto with Apache License 2.0 5 votes vote down vote up
public static void main(String[] args)
        throws Exception
{
    // assure the benchmarks are valid before running
    BenchmarkData data = new BenchmarkData();
    data.setup();
    new BenchmarkArraySubscript().arraySubscript(data);

    Options options = new OptionsBuilder()
            .verbosity(VerboseMode.NORMAL)
            .warmupMode(WarmupMode.INDI)
            .include(".*" + BenchmarkArraySubscript.class.getSimpleName() + ".*")
            .build();
    new Runner(options).run();
}
 
Example #11
Source File: BenchmarkRowToRowCast.java    From presto with Apache License 2.0 5 votes vote down vote up
public static void main(String[] args)
        throws Exception
{
    // assure the benchmarks are valid before running
    BenchmarkData data = new BenchmarkData();
    data.setup();
    new BenchmarkRowToRowCast().benchmark(data);

    Options options = new OptionsBuilder()
            .verbosity(VerboseMode.NORMAL)
            .include(".*" + BenchmarkRowToRowCast.class.getSimpleName() + ".*")
            .warmupMode(WarmupMode.INDI)
            .build();
    new Runner(options).run();
}
 
Example #12
Source File: BenchmarkJsonToArrayCast.java    From presto with Apache License 2.0 5 votes vote down vote up
public static void main(String[] args)
        throws Exception
{
    // assure the benchmarks are valid before running
    BenchmarkData data = new BenchmarkData();
    data.setup();
    new BenchmarkJsonToArrayCast().benchmark(data);

    Options options = new OptionsBuilder()
            .verbosity(VerboseMode.NORMAL)
            .include(".*" + BenchmarkJsonToArrayCast.class.getSimpleName() + ".*")
            .warmupMode(WarmupMode.BULK_INDI)
            .build();
    new Runner(options).run();
}
 
Example #13
Source File: BenchmarkReferenceCountMap.java    From presto with Apache License 2.0 5 votes vote down vote up
public static void main(String[] args)
        throws RunnerException
{
    Options options = new OptionsBuilder()
            .verbosity(VerboseMode.NORMAL)
            .warmupMode(WarmupMode.BULK)
            .include(".*" + BenchmarkReferenceCountMap.class.getSimpleName() + ".*")
            .addProfiler(GCProfiler.class)
            .jvmArgs("-XX:+UseG1GC")
            .build();

    new Runner(options).run();
}
 
Example #14
Source File: JMHSample_32_BulkWarmup.java    From jmh-playground with Apache License 2.0 5 votes vote down vote up
public static void main(String[] args) throws RunnerException {
    Options opt = new OptionsBuilder()
            .include(JMHSample_32_BulkWarmup.class.getSimpleName())
            // .includeWarmup(...) <-- this may include other benchmarks into warmup
            .warmupMode(WarmupMode.BULK) // see other WarmupMode.* as well
            .warmupIterations(5)
            .measurementIterations(5)
            .forks(1)
            .build();

    new Runner(opt).run();
}
 
Example #15
Source File: SawmillBenchmarkOptions.java    From sawmill with Apache License 2.0 4 votes vote down vote up
@Override
public Optional<WarmupMode> getWarmupMode() {
    return Optional.eitherOf(warmupMode);
}