diff --git a/src/bench/CMakeLists.txt b/src/bench/CMakeLists.txt new file mode 100644 index 0000000000..8b058dd8ad --- /dev/null +++ b/src/bench/CMakeLists.txt @@ -0,0 +1,47 @@ +# Copyright (c) 2023-present The Bitcoin Core developers +# Distributed under the MIT software license, see the accompanying +# file COPYING or https://opensource.org/license/mit/. + +include(GenerateHeaders) +generate_header_from_raw(data/block413567.raw benchmark::data) + +add_executable(bench_firo + bench_bitcoin.cpp + bench.cpp + ${CMAKE_CURRENT_BINARY_DIR}/data/block413567.raw.h +# Benchmarks: + base58.cpp + ccoins_caching.cpp + checkblock.cpp + checkqueue.cpp + crypto_hash.cpp + Examples.cpp + lockedpool.cpp + mempool_eviction.cpp + perf.cpp + rollingbloom.cpp + verify_script.cpp +) + +target_link_libraries(bench_firo + core_interface + test_util + firo_node + Boost::headers +) + +if(ENABLE_WALLET) + target_sources(bench_firo + PRIVATE + coin_selection.cpp + ) + target_link_libraries(bench_firo firo_wallet) +endif() + +add_test(NAME bench_sanity_check_high_priority + COMMAND bench_firo -sanity-check -priority-level=high +) + +install(TARGETS bench_firo + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} +) diff --git a/src/bench/bench.h b/src/bench/bench.h index 0e7605c726..90a942f6c3 100644 --- a/src/bench/bench.h +++ b/src/bench/bench.h @@ -7,6 +7,7 @@ #include #include +#include #include #include