Skip to content

Commit

Permalink
[INFRA] add enable_testing
Browse files Browse the repository at this point in the history
was actually missing for performance tests before
  • Loading branch information
eseiler committed Nov 8, 2023
1 parent 8122c1c commit 1e40828
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci_misc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ jobs:
cmake ../test/${{ matrix.build }} -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
-DHIBF_NATIVE_BUILD=OFF \
-DHIBF_VERBOSE_TESTS=OFF \
-DHIBF_BENCHMARK_MIN_TIME=0.01 \
-DHIBF_USE_INCLUDE_DEPENDENCIES="${{ matrix.use_include_dependencies }}"
case "${{ matrix.build }}" in
unit) make -j2 gtest_main;;
Expand Down
2 changes: 2 additions & 0 deletions test/hibf-test.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ list (APPEND CMAKE_MODULE_PATH "${HIBF_TEST_CMAKE_MODULE_DIR}")
# Interface targets for the different test modules in hibf.
# ----------------------------------------------------------------------------

enable_testing ()

# hibf::test exposes a base set of required flags, includes, definitions and
# libraries which are in common for **all** hibf tests
if (NOT TARGET hibf::test)
Expand Down
2 changes: 1 addition & 1 deletion test/performance/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ project (hibf_test_performance CXX)
include (../hibf-test.cmake)

set (HIBF_BENCHMARK_MIN_TIME
"1"
"0.01s"
CACHE STRING "Set --benchmark_min_time= for each bechmark. Timings are unreliable in CI.")

macro (hibf_benchmark benchmark_cpp)
Expand Down
6 changes: 3 additions & 3 deletions test/performance/ibf/interleaved_bloom_filter_benchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ static void arguments(benchmark::internal::Benchmark * b)
// Total size: 1MiB
// bins, bin_size, hash_num, sequence_length
b->Args({64, 1LL << 17, 2, 1LL << 17});
b->Args({128, 1LL << 16, 2, 1LL << 17});
b->Args({192, 1LL << 16, 2, 1LL << 17});
b->Args({256, 1LL << 15, 2, 1LL << 17});
// b->Args({128, 1LL << 16, 2, 1LL << 17});
// b->Args({192, 1LL << 16, 2, 1LL << 17});
// b->Args({256, 1LL << 15, 2, 1LL << 17});
// b->Args({320, 1LL << 15, 2, 1LL << 17});
// b->Args({384, 1LL << 14, 2, 1LL << 17});
// b->Args({448, 1LL << 14, 2, 1LL << 17});
Expand Down

0 comments on commit 1e40828

Please sign in to comment.