use of org.openjdk.jmh.annotations.Benchmark in project druid by druid-io.
the class IncrementalIndexRowTypeBenchmark method normalFloats.
@Benchmark
@BenchmarkMode(Mode.AverageTime)
@OutputTimeUnit(TimeUnit.MICROSECONDS)
@OperationsPerInvocation(maxRows)
public void normalFloats(Blackhole blackhole) throws Exception {
for (int i = 0; i < maxRows; i++) {
InputRow row = floatRows.get(i);
int rv = incFloatIndex.add(row);
blackhole.consume(rv);
}
}
use of org.openjdk.jmh.annotations.Benchmark in project druid by druid-io.
the class IncrementalIndexRowTypeBenchmark method normalStrings.
@Benchmark
@BenchmarkMode(Mode.AverageTime)
@OutputTimeUnit(TimeUnit.MICROSECONDS)
@OperationsPerInvocation(maxRows)
public void normalStrings(Blackhole blackhole) throws Exception {
for (int i = 0; i < maxRows; i++) {
InputRow row = stringRows.get(i);
int rv = incStrIndex.add(row);
blackhole.consume(rv);
}
}
use of org.openjdk.jmh.annotations.Benchmark in project druid by druid-io.
the class LikeFilterBenchmark method matchBoundPrefix.
@Benchmark
@BenchmarkMode(Mode.AverageTime)
@OutputTimeUnit(TimeUnit.MICROSECONDS)
public void matchBoundPrefix(Blackhole blackhole) {
final ImmutableBitmap bitmapIndex = BOUND_PREFIX.getBitmapIndex(selector);
blackhole.consume(bitmapIndex);
}
use of org.openjdk.jmh.annotations.Benchmark in project druid by druid-io.
the class BoundFilterBenchmark method matchEverythingAlphaNumeric.
@Benchmark
@BenchmarkMode(Mode.AverageTime)
@OutputTimeUnit(TimeUnit.MICROSECONDS)
public void matchEverythingAlphaNumeric() {
final ImmutableBitmap bitmapIndex = EVERYTHING_ALPHANUMERIC.getBitmapIndex(selector);
Preconditions.checkState(bitmapIndex.size() == cardinality);
}
use of org.openjdk.jmh.annotations.Benchmark in project druid by druid-io.
the class BoundFilterBenchmark method matchNothingLexicographic.
@Benchmark
@BenchmarkMode(Mode.AverageTime)
@OutputTimeUnit(TimeUnit.MICROSECONDS)
public void matchNothingLexicographic() {
final ImmutableBitmap bitmapIndex = NOTHING_LEXICOGRAPHIC.getBitmapIndex(selector);
Preconditions.checkState(bitmapIndex.size() == 0);
}
Aggregations