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

The following examples show how to use org.openjdk.jmh.runner.options.VerboseMode. 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: BenchmarkGroupByHash.java    From presto with Apache License 2.0 6 votes vote down vote up
public static void main(String[] args)
        throws RunnerException
{
    // assure the benchmarks are valid before running
    BenchmarkData data = new BenchmarkData();
    data.setup();
    new BenchmarkGroupByHash().groupByHashPreCompute(data);
    new BenchmarkGroupByHash().addPagePreCompute(data);

    SingleChannelBenchmarkData singleChannelBenchmarkData = new SingleChannelBenchmarkData();
    singleChannelBenchmarkData.setup();
    new BenchmarkGroupByHash().bigintGroupByHash(singleChannelBenchmarkData);

    Options options = new OptionsBuilder()
            .verbosity(VerboseMode.NORMAL)
            .include(".*" + BenchmarkGroupByHash.class.getSimpleName() + ".*")
            .addProfiler(GCProfiler.class)
            .jvmArgs("-Xmx10g")
            .build();
    new Runner(options).run();
}
 
Example #2
Source File: BenchmarkInformationSchema.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 BenchmarkInformationSchema().queryInformationSchema(data);
    }
    finally {
        data.tearDown();
    }

    Options options = new OptionsBuilder()
            .verbosity(VerboseMode.NORMAL)
            .include(".*" + BenchmarkInformationSchema.class.getSimpleName() + ".*")
            .build();
    new Runner(options).run();
}
 
Example #3
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 #4
Source File: BenchmarkSTContains.java    From presto with Apache License 2.0 6 votes vote down vote up
public static void main(String[] args)
        throws IOException, RunnerException
{
    // assure the benchmarks are valid before running
    BenchmarkData data = new BenchmarkData();
    data.setup();
    BenchmarkSTContains benchmark = new BenchmarkSTContains();
    if (!((Boolean) benchmark.stContainsInnerPoint(data)).booleanValue()) {
        throw new IllegalStateException("ST_Contains for inner point expected to return true, got false.");
    }

    if (((Boolean) benchmark.stContainsOuterPointInEnvelope(data)).booleanValue()) {
        throw new IllegalStateException("ST_Contains for outer point expected to return false, got true.");
    }

    Options options = new OptionsBuilder()
            .verbosity(VerboseMode.NORMAL)
            .include(".*" + BenchmarkSTContains.class.getSimpleName() + ".*")
            .build();
    new Runner(options).run();
}
 
Example #5
Source File: FHIRBenchmarkRunner.java    From FHIR with Apache License 2.0 6 votes vote down vote up
/**
 * Run the benchmark with all the examples in BenchmarkUtil.SPEC_EXAMPLE_NAMES
 */
public Collection<RunResult> runAll() throws RunnerException {
    Options opt = new OptionsBuilder()
            .include(".*" + benchmarkClass.getSimpleName() + ".*")
            .jvmArgsPrepend("-Xms4g", "-Xmx4g")
            .jvmArgsAppend(properties.toArray(new String[properties.size()]))
            .verbosity(VerboseMode.NORMAL)
            .warmupIterations(1)
            .warmupTime(TimeValue.seconds(10))
            .measurementIterations(1)
            .measurementTime(TimeValue.seconds(10))
            .shouldDoGC(true)
            .forks(1)
            .output("results.txt")
            .mode(Mode.SingleShotTime)
            .param("exampleName", BenchmarkUtil.SPEC_EXAMPLE_NAMES.toArray(new String[0])) // https://stackoverflow.com/a/4042464/161022
            .build();
    return new Runner(opt).run();
}
 
Example #6
Source File: FHIRBenchmarkRunner.java    From FHIR with Apache License 2.0 6 votes vote down vote up
/**
     * Run and override the 'exampleName' param with the passed fileName
     */
    public Collection<RunResult> run(String fileName) throws RunnerException {
        Options opt = new OptionsBuilder()
                .include(".*" + benchmarkClass.getSimpleName() + ".*")
                .jvmArgsPrepend("-Xms4g", "-Xmx4g")
                .jvmArgsAppend(properties.toArray(new String[properties.size()]))
                .verbosity(VerboseMode.NORMAL)
                .warmupIterations(1)
                .warmupTime(TimeValue.seconds(10))
                .measurementIterations(2)
                .measurementTime(TimeValue.seconds(10))
                .shouldDoGC(false)
                .forks(1)
//              .mode(Mode.AverageTime)
                .addProfiler(StackProfiler.class)
                .param("exampleName", fileName)
                .build();
        return new Runner(opt).run();
    }
 
Example #7
Source File: FHIRBenchmarkRunner.java    From FHIR with Apache License 2.0 6 votes vote down vote up
/**
     * Run without overriding any parameters
     */
    public Collection<RunResult> run() throws RunnerException {
        Options opt = new OptionsBuilder()
                .include(".*" + benchmarkClass.getSimpleName() + ".*")
                .jvmArgsPrepend("-Xms2g", "-Xmx2g")
                .jvmArgsAppend(properties.toArray(new String[properties.size()]))
                .verbosity(VerboseMode.NORMAL)
                .warmupIterations(1)
                .warmupTime(TimeValue.seconds(10))
                .measurementIterations(2)
                .measurementTime(TimeValue.seconds(10))
                .shouldDoGC(true)
                .forks(2)
                .threads(1)
//              .mode(Mode.AverageTime)
                .addProfiler(StackProfiler.class)
                .build();
        return new Runner(opt).run();
    }
 
Example #8
Source File: BenchmarkComputePosition.java    From presto with Apache License 2.0 5 votes vote down vote up
public static void main(String[] args)
        throws Exception
{
    Options options = new OptionsBuilder()
            .verbosity(VerboseMode.NORMAL)
            .include(".*" + BenchmarkComputePosition.class.getSimpleName() + ".*")
            .build();

    new Runner(options).run();
}
 
Example #9
Source File: BenchmarkBigIntOperators.java    From presto with Apache License 2.0 5 votes vote down vote up
public static void main(String[] args)
        throws Exception
{
    Options options = new OptionsBuilder()
            .verbosity(VerboseMode.NORMAL)
            .include(".*" + BenchmarkBigIntOperators.class.getSimpleName() + ".*")
            .build();
    new Runner(options).run();
}
 
Example #10
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 #11
Source File: SerializationFrameworkMiniBenchmarks.java    From flink-benchmarks 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)
			.include(".*" + SerializationFrameworkMiniBenchmarks.class.getCanonicalName() + ".*")
			.build();

	new Runner(options).run();
}
 
Example #12
Source File: KeyByBenchmarks.java    From flink-benchmarks 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)
			.include(".*" + KeyByBenchmarks.class.getCanonicalName() + ".*")
			.build();

	new Runner(options).run();
}
 
Example #13
Source File: SerializationFrameworkAllBenchmarks.java    From flink-benchmarks 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)
			.include(".*" + SerializationFrameworkAllBenchmarks.class.getCanonicalName() + ".*")
			.build();

	new Runner(options).run();
}
 
Example #14
Source File: BenchmarkGetPartitionsSample.java    From presto with Apache License 2.0 5 votes vote down vote up
public static void main(String[] args)
        throws Exception
{
    Options options = new OptionsBuilder()
            .verbosity(VerboseMode.NORMAL)
            .include(".*" + BenchmarkGetPartitionsSample.class.getSimpleName() + ".*")
            .build();
    new Runner(options).run();
}
 
Example #15
Source File: RocksStateBackendBenchmark.java    From flink-benchmarks 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)
			.include(".*" + RocksStateBackendBenchmark.class.getCanonicalName() + ".*")
			.build();

	new Runner(options).run();
}
 
Example #16
Source File: AsyncWaitOperatorBenchmark.java    From flink-benchmarks 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)
		.include(".*" + AsyncWaitOperatorBenchmark.class.getCanonicalName() + ".*")
		.build();

	new Runner(options).run();
}
 
Example #17
Source File: PojoSerializationBenchmark.java    From flink-benchmarks 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)
            .include(".*" + PojoSerializationBenchmark.class.getCanonicalName() + ".*")
            .build();

    new Runner(options).run();
}
 
Example #18
Source File: RemoteChannelThroughputBenchmark.java    From flink-benchmarks 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)
            .include(RemoteChannelThroughputBenchmark.class.getCanonicalName())
            .build();

    new Runner(options).run();
}
 
Example #19
Source File: BenchmarkSortedRangeSet.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)
            .include(".*" + BenchmarkSortedRangeSet.class.getSimpleName() + ".*")
            .build();

    new Runner(options).run();
}
 
Example #20
Source File: BenchmarkDecimalOperators.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)
            .include(".*" + BenchmarkDecimalOperators.class.getSimpleName() + ".*")
            .build();

    new Runner(options).run();
}
 
Example #21
Source File: BenchmarkSTIntersects.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)
            .include(".*" + BenchmarkSTIntersects.class.getSimpleName() + ".*")
            .build();
    new Runner(options).run();
}
 
Example #22
Source File: BenchmarkBoxedBoolean.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)
            .include(".*" + BenchmarkBoxedBoolean.class.getSimpleName() + ".*")
            .addProfiler("perfasm")
            .build();
    new Runner(options).run();
}
 
Example #23
Source File: BenchmarkPagesIndexPageSorter.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)
            .include(".*" + BenchmarkPagesIndexPageSorter.class.getSimpleName() + ".*")
            .build();

    new Runner(options).run();
}
 
Example #24
Source File: TwoInputBenchmark.java    From flink-benchmarks 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)
		.include(".*" + TwoInputBenchmark.class.getCanonicalName() + ".*")
		.build();

	new Runner(options).run();
}
 
Example #25
Source File: BenchmarkInCodeGenerator.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)
            .include(".*" + BenchmarkInCodeGenerator.class.getSimpleName() + ".*")
            .build();

    new Runner(options).run();
}
 
Example #26
Source File: DataSkewStreamNetworkThroughputBenchmarkExecutor.java    From flink-benchmarks 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)
			.include(".*" + DataSkewStreamNetworkThroughputBenchmarkExecutor.class.getCanonicalName() + ".*")
			.build();

	new Runner(options).run();
}
 
Example #27
Source File: MemoryStateBackendBenchmark.java    From flink-benchmarks 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)
			.include(".*" + MemoryStateBackendBenchmark.class.getCanonicalName() + ".*")
			.build();

	new Runner(options).run();
}
 
Example #28
Source File: ContinuousFileReaderOperatorBenchmark.java    From flink-benchmarks 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)
            .include(".*" + ContinuousFileReaderOperatorBenchmark.class.getCanonicalName() + ".*")
            .build();

    new Runner(options).run();
}
 
Example #29
Source File: BenchmarkReorderInterconnectedJoins.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)
            .include(".*" + BenchmarkReorderInterconnectedJoins.class.getSimpleName() + ".*")
            .build();

    new Runner(options).run();
}
 
Example #30
Source File: BenchmarkNodeScheduler.java    From presto with Apache License 2.0 5 votes vote down vote up
public static void main(String[] args)
        throws Exception
{
    Options options = new OptionsBuilder()
            .verbosity(VerboseMode.NORMAL)
            .include(".*" + BenchmarkNodeScheduler.class.getSimpleName() + ".*")
            .build();
    new Runner(options).run();
}