Skip to content

Commit

Permalink
Disable bloom filter and improve benchmark code.
Browse files Browse the repository at this point in the history
  • Loading branch information
kenwenzel committed Jul 29, 2024
1 parent 9e5e102 commit 735e86b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ static ParquetWriter<KvinTupleInternal> getParquetDataWriter(Path dataFile) thro
.withPageSize(PAGE_SIZE)
.withDictionaryPageSize(DICT_PAGE_SIZE)
.withDataModel(reflectData)
.withBloomFilterEnabled("id", true)
//.withBloomFilterEnabled("id", true)
.build();
}

Expand All @@ -90,7 +90,7 @@ static ParquetWriter<Object> getParquetMappingWriter(Path dataFile) throws IOExc
.withRowGroupSize(ROW_GROUP_SIZE_MAPPINGS)
.withPageSize(PAGE_SIZE)
.withDictionaryPageSize(DICT_PAGE_SIZE)
.withBloomFilterEnabled("value", true)
//.withBloomFilterEnabled("value", true)
.withDataModel(reflectData)
.build();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@

@State(Scope.Benchmark)
@Fork(value = 1, jvmArgs = {"-Dorg.slf4j.simpleLogger.defaultLogLevel=warn", "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=1044"})
@Warmup(iterations = 3, time = 500, timeUnit = TimeUnit.MILLISECONDS)
@Measurement(iterations = 3, time = 500, timeUnit = TimeUnit.MILLISECONDS)
@Warmup(iterations = 3, time = 5000, timeUnit = TimeUnit.MILLISECONDS)
@Measurement(iterations = 3, time = 5000, timeUnit = TimeUnit.MILLISECONDS)
@BenchmarkMode(Mode.AverageTime)
@OutputTimeUnit(TimeUnit.MILLISECONDS)
public class KvinParquetBenchmark {
Expand Down Expand Up @@ -97,7 +97,7 @@ public KvinParquetBenchmark() {

public static void main(String[] args) throws RunnerException {
Options opt = new OptionsBuilder()
.include(KvinParquetBenchmark.class.getSimpleName() + ".testKvinParquetReadPerformanceForProcessUseCase") // adapt to control which benchmark tests to run
.include(KvinParquetBenchmark.class.getSimpleName()) // adapt to control which benchmark tests to run
.forks(1)
.build();

Expand Down

0 comments on commit 735e86b

Please sign in to comment.