Skip to content

Commit

Permalink
Merge pull request #47 from bkille/benchmark
Browse files Browse the repository at this point in the history
Add benchmarks for other libraries and optional SIMD
  • Loading branch information
bkille authored Dec 20, 2023
2 parents 70eb1d4 + eb4234a commit dabc339
Show file tree
Hide file tree
Showing 19 changed files with 1,524 additions and 222 deletions.
9 changes: 9 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[submodule "benchmark/ext/BitArray"]
path = benchmark/ext/BitArray
url = https://github.com/noporpoise/BitArray.git
[submodule "benchmark/ext/itsy_bitsy"]
path = benchmark/ext/itsy_bitsy
url = https://github.com/ThePhD/itsy_bitsy.git
[submodule "benchmark/ext/dynamic_bitset"]
path = benchmark/ext/dynamic_bitset
url = https://github.com/pinam45/dynamic_bitset.git
191 changes: 117 additions & 74 deletions README.md

Large diffs are not rendered by default.

10 changes: 8 additions & 2 deletions benchmark/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,15 @@ set(CMAKE_BUILD_TYPE Release)
file(GLOB BENCH_SOURCES "src/*.cc")
add_executable(bitlib-bench ${BENCH_SOURCES})

add_subdirectory(ext/dynamic_bitset)

# specify benchmark-specific libraries
include_directories(${googlebench_SOURCE_DIR}/benchmark/include src/utils)
target_link_libraries(bitlib-bench PRIVATE benchmark::benchmark -pthread)
include_directories(
${googlebench_SOURCE_DIR}/benchmark/include
src/utils
ext/BitArray
ext/itsy_bitsy/include)
target_link_libraries(bitlib-bench PRIVATE benchmark::benchmark -pthread ${CMAKE_CURRENT_LIST_DIR}/ext/BitArray/libbitarr.a sul::dynamic_bitset)

target_compile_options(bitlib-bench PUBLIC -O3 -DNDEBUG -march=native -Wpedantic)
install(TARGETS bitlib-bench DESTINATION .)
Loading

0 comments on commit dabc339

Please sign in to comment.