Skip to content
Merged
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
12 changes: 12 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -194,4 +194,16 @@ if(BUILD_BENCHMARKS)
else()
message(STATUS "DuckDB not found, skipping duckdb_comparison_bench")
endif()

# PostgreSQL comparison benchmark
find_library(PQLIB_LIBRARY pq PATHS /usr/lib /usr/local/lib /opt/homebrew/lib)
find_path(PQLIB_INCLUDE_DIR libpq-fe.h PATHS /usr/include /usr/local/include /opt/homebrew/include)
if(PQLIB_LIBRARY AND PQLIB_INCLUDE_DIR)
add_executable(postgresql_comparison_bench benchmarks/postgresql_comparison_bench.cpp)
target_include_directories(postgresql_comparison_bench PRIVATE ${PQLIB_INCLUDE_DIR})
target_link_libraries(postgresql_comparison_bench sqlEngineCore benchmark::benchmark benchmark::benchmark_main ${PQLIB_LIBRARY})
message(STATUS "PostgreSQL benchmark enabled")
else()
message(STATUS "libpq not found, skipping postgresql_comparison_bench")
endif()
endif()
Loading
Loading