@Benchmark
  @Group("getBucketIndexThroughput")
  @GroupThreads(1)
  @Measurement(iterations = (int) BENCHMARK_ITERATIONS)
  @BenchmarkMode(Mode.Throughput)
  @OutputTimeUnit(TimeUnit.SECONDS)
  // @Warmup we don't warm up because our @Setup warms us up
  public Object getBucketIndex() {
    return index.getBucketIndex();
  }
Test spins up threads that constantly do getBucketIndex
The tests will measure throughput
The benchmark tests getBucketIndex in the presence of other threads attempting the same operation
geode-core/src/jmh/java/org/apache/geode/cache/query/internal/PartitionedIndexGetBucketIndexBenchmark.java