Search in sources :

Example 16 with Options

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

the class ClientBenchmark method main.

public static void main(final String[] args) throws Exception {
    final Options opt = new OptionsBuilder().include(ClientBenchmark.class.getSimpleName()).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 17 with Options

use of org.openjdk.jmh.runner.options.Options in project pinot by linkedin.

the class BenchmarkFileRead method main.

/*  @Benchmark
  @BenchmarkMode({Mode.SampleTime})
  @OutputTimeUnit(TimeUnit.MILLISECONDS)
  public void readUnpacks() {
    int rows = 25000000;
    int columnSizeInBits = 3;
    boolean isMMap = false;
    boolean hasNulls = false;

    int output[] = new int[rows];
    final int outputBytes = MathUtils.lcm(32, columnSizeInBits) / columnSizeInBits;
    final int inputBytes = MathUtils.lcm(32, columnSizeInBits) / 32;
    int destPos = 0;
    int inPos = 0;
    byteBuffer.rewind();
    int[] input = new int[length / 4];
    byteBuffer.asIntBuffer().get(input);
    for (int i = 0; i < (length / 4) / inputBytes; i++) {
      BitPacking.fastunpack(input, inPos, output, destPos, columnSizeInBits);
      destPos += outputBytes;
      inPos += inputBytes;
    }
  }*/
public static void main(String[] args) throws Exception {
    Options opt = new OptionsBuilder().include(BenchmarkFileRead.class.getSimpleName()).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 18 with Options

use of org.openjdk.jmh.runner.options.Options in project pinot by linkedin.

the class BenchmarkFileWrite method main.

public static void main(String[] args) throws Exception {
    Options opt = new OptionsBuilder().include(BenchmarkFileWrite.class.getSimpleName()).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 19 with Options

use of org.openjdk.jmh.runner.options.Options in project zipkin by openzipkin.

the class UtilBenchmarks method main.

// Convenience main entry-point
public static void main(String[] args) throws RunnerException {
    Options opt = new OptionsBuilder().include(".*" + UtilBenchmarks.class.getSimpleName() + ".*").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 20 with Options

use of org.openjdk.jmh.runner.options.Options in project zipkin by openzipkin.

the class CodecBenchmarks method main.

// Convenience main entry-point
public static void main(String[] args) throws RunnerException {
    Options opt = new OptionsBuilder().include(".*" + CodecBenchmarks.class.getSimpleName() + ".*").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)

Aggregations

Runner (org.openjdk.jmh.runner.Runner)68 Options (org.openjdk.jmh.runner.options.Options)68 OptionsBuilder (org.openjdk.jmh.runner.options.OptionsBuilder)68 StackProfiler (org.openjdk.jmh.profile.StackProfiler)6 RunResult (org.openjdk.jmh.results.RunResult)2 GCProfiler (org.openjdk.jmh.profile.GCProfiler)1 Result (org.openjdk.jmh.results.Result)1 Statistics (org.openjdk.jmh.util.Statistics)1