All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.deephacks.rxlmdb.BigZeroCopyForwardRangeScan Maven / Gradle / Ivy

package org.deephacks.rxlmdb;

import org.openjdk.jmh.annotations.*;

import java.util.concurrent.TimeUnit;

@BenchmarkMode(Mode.Throughput)
@OutputTimeUnit(TimeUnit.SECONDS)
@State(Scope.Thread)
@Measurement(iterations = 5)
@Warmup(iterations = 10)
@Fork(value = 2)
public class BigZeroCopyForwardRangeScan {
  static RangedRowsSetup setup = new RangedRowsSetup(BigKeyValueForwardRangeScan.class);

  @State(Scope.Thread)
  public static class PlainThread extends AbstractPlainThread {
    public PlainThread() {
      super(setup, cursor -> cursor.keyByte(0));
    }
  }

  @Setup
  public void setup() {
    setup.writeBigKeyValue();
  }

  @Benchmark
  public void plain(PlainThread t) {
    t.next();
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy