From df5a50e5de204013ba56e1c4967a249ca07ba086 Mon Sep 17 00:00:00 2001 From: Anthony Towns Date: Mon, 25 Aug 2025 17:32:45 +1000 Subject: [PATCH 1/3] bench/blockencodings: add compact block reconstruction benchmark --- src/bench/CMakeLists.txt | 1 + src/bench/blockencodings.cpp | 131 +++++++++++++++++++++++++++++++++++ 2 files changed, 132 insertions(+) create mode 100644 src/bench/blockencodings.cpp diff --git a/src/bench/CMakeLists.txt b/src/bench/CMakeLists.txt index c976f134b7c..0bf469c79cd 100644 --- a/src/bench/CMakeLists.txt +++ b/src/bench/CMakeLists.txt @@ -12,6 +12,7 @@ add_executable(bench_bitcoin bech32.cpp bip324_ecdh.cpp block_assemble.cpp + blockencodings.cpp ccoins_caching.cpp chacha20.cpp checkblock.cpp diff --git a/src/bench/blockencodings.cpp b/src/bench/blockencodings.cpp new file mode 100644 index 00000000000..7e9423953c9 --- /dev/null +++ b/src/bench/blockencodings.cpp @@ -0,0 +1,131 @@ +// Copyright (c) 2025-present The Bitcoin Core 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