Search in sources :

Example 6 with ImmutableConciseSet

use of io.druid.extendedset.intset.ImmutableConciseSet in project druid by druid-io.

the class BitmapBenchmark method timeOffheapConciseUnion.

@Test
@BenchmarkOptions(warmupRounds = 1, benchmarkRounds = 2)
public void timeOffheapConciseUnion() throws Exception {
    ImmutableConciseSet union = ImmutableConciseSet.union(offheapConcise);
    Assert.assertEquals(unionCount, union.size());
}
Also used : ImmutableConciseSet(io.druid.extendedset.intset.ImmutableConciseSet) Test(org.junit.Test) BenchmarkOptions(com.carrotsearch.junitbenchmarks.BenchmarkOptions)

Example 7 with ImmutableConciseSet

use of io.druid.extendedset.intset.ImmutableConciseSet in project druid by druid-io.

the class BitmapBenchmark method timeConciseUnion.

@Test
@BenchmarkOptions(warmupRounds = 1, benchmarkRounds = 2)
public void timeConciseUnion() throws Exception {
    ImmutableConciseSet union = ImmutableConciseSet.union(concise);
    Assert.assertEquals(unionCount, union.size());
}
Also used : ImmutableConciseSet(io.druid.extendedset.intset.ImmutableConciseSet) Test(org.junit.Test) BenchmarkOptions(com.carrotsearch.junitbenchmarks.BenchmarkOptions)

Aggregations

ImmutableConciseSet (io.druid.extendedset.intset.ImmutableConciseSet)7 BenchmarkOptions (com.carrotsearch.junitbenchmarks.BenchmarkOptions)2 Test (org.junit.Test)2 ByteBuffer (java.nio.ByteBuffer)1 Benchmark (org.openjdk.jmh.annotations.Benchmark)1 BenchmarkMode (org.openjdk.jmh.annotations.BenchmarkMode)1 OutputTimeUnit (org.openjdk.jmh.annotations.OutputTimeUnit)1