diff --git a/src/Makefile.bench.include b/src/Makefile.bench.include index f4c9383f11..7ea29743ee 100644 --- a/src/Makefile.bench.include +++ b/src/Makefile.bench.include @@ -28,6 +28,7 @@ bench_bench_bitcoin_SOURCES = \ bench/gcs_filter.cpp \ bench/merkle_root.cpp \ bench/mempool_eviction.cpp \ + bench/removeforblock.cpp \ bench/rpc_blockchain.cpp \ bench/rpc_mempool.cpp \ bench/json.cpp \ diff --git a/src/bench/CMakeLists.txt b/src/bench/CMakeLists.txt index 75f0adc2b7..8731f2b162 100644 --- a/src/bench/CMakeLists.txt +++ b/src/bench/CMakeLists.txt @@ -27,6 +27,7 @@ add_executable(bench_bitcoin mempool_eviction.cpp merkle_root.cpp prevector.cpp + removeforblock.cpp rollingbloom.cpp rpc_blockchain.cpp rpc_mempool.cpp diff --git a/src/bench/removeforblock.cpp b/src/bench/removeforblock.cpp new file mode 100644 index 0000000000..5caa0e6d68 --- /dev/null +++ b/src/bench/removeforblock.cpp @@ -0,0 +1,194 @@ +// Copyright (c) 2021 The Bitcoin developers +// Distributed under the MIT software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + +#include +#include +#include +#include +#include +#include +#include