From 4ffb542b6bbcfbc51d42db91e271ed4140c2a7b3 Mon Sep 17 00:00:00 2001 From: Greg Sanders Date: Mon, 21 Oct 2024 15:55:26 -0400 Subject: [PATCH] bench: Add basic CheckEphemeralSpends benchmark --- src/bench/CMakeLists.txt | 1 + src/bench/mempool_ephemeral_spends.cpp | 83 ++++++++++++++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 src/bench/mempool_ephemeral_spends.cpp diff --git a/src/bench/CMakeLists.txt b/src/bench/CMakeLists.txt index 61a1126904e584..91a3f8e16d8974 100644 --- a/src/bench/CMakeLists.txt +++ b/src/bench/CMakeLists.txt @@ -35,6 +35,7 @@ add_executable(bench_bitcoin load_external.cpp lockedpool.cpp logging.cpp + mempool_ephemeral_spends.cpp mempool_eviction.cpp mempool_stress.cpp merkle_root.cpp diff --git a/src/bench/mempool_ephemeral_spends.cpp b/src/bench/mempool_ephemeral_spends.cpp new file mode 100644 index 00000000000000..e867c61752c1e4 --- /dev/null +++ b/src/bench/mempool_ephemeral_spends.cpp @@ -0,0 +1,83 @@ +// Copyright (c) 2011-2022 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