Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions benchmark/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,20 @@ if(PAIMON_BUILD_BENCHMARKS)
${PAIMON_BENCHMARK_LINK_TOOLCHAIN}
EXTRA_INCLUDES
${CMAKE_SOURCE_DIR})

add_paimon_benchmark(parquet_format_benchmark
SOURCES
parquet_format_benchmark.cpp
STATIC_LINK_LIBS
arrow
parquet
${PAIMON_BENCHMARK_STATIC_LINK_LIBS}
test_utils_static
Threads::Threads
${PAIMON_BENCHMARK_PLATFORM_LINK_LIBS}
${PAIMON_BENCHMARK_LINK_TOOLCHAIN}
EXTRA_INCLUDES
${CMAKE_SOURCE_DIR})
endif()

if(PAIMON_BUILD_TESTS)
Expand All @@ -74,4 +88,21 @@ if(PAIMON_BUILD_TESTS)
STATIC_LINK_LIBS
paimon_shared
${GTEST_LINK_TOOLCHAIN})

# Guards the format-layer assumptions parquet_format_benchmark.cpp is built on. The benchmark
# itself is only compiled under PAIMON_BUILD_BENCHMARKS, which CI does not set, so this test is
# what keeps those assumptions covered.
add_paimon_test(parquet_format_benchmark_test
SOURCES
parquet_format_benchmark_test.cpp
EXTRA_INCLUDES
${CMAKE_SOURCE_DIR}
STATIC_LINK_LIBS
arrow
parquet
paimon_shared
${PAIMON_LOCAL_FILE_SYSTEM_SHARED_LINK_LIBS}
${PAIMON_PARQUET_FILE_FORMAT_STATIC_LINK_LIBS}
test_utils_static
${GTEST_LINK_TOOLCHAIN})
endif()
Loading
Loading