From 080089567ca766d4c1cde8ec0e5c7df48f566e07 Mon Sep 17 00:00:00 2001 From: Sebastian Falbesoner Date: Mon, 20 Nov 2023 10:34:03 +0100 Subject: [PATCH 1/2] bench: add benchmark for `SignTransaction` --- src/Makefile.bench.include | 1 + src/bench/sign_transaction.cpp | 70 ++++++++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 src/bench/sign_transaction.cpp diff --git a/src/Makefile.bench.include b/src/Makefile.bench.include index 7ba0111fa68..204a1cc1622 100644 --- a/src/Makefile.bench.include +++ b/src/Makefile.bench.include @@ -52,6 +52,7 @@ bench_bench_bitcoin_SOURCES = \ bench/rollingbloom.cpp \ bench/rpc_blockchain.cpp \ bench/rpc_mempool.cpp \ + bench/sign_transaction.cpp \ bench/streams_findbyte.cpp \ bench/strencodings.cpp \ bench/util_time.cpp \ diff --git a/src/bench/sign_transaction.cpp b/src/bench/sign_transaction.cpp new file mode 100644 index 00000000000..7a2e26e339f --- /dev/null +++ b/src/bench/sign_transaction.cpp @@ -0,0 +1,70 @@ +// Copyright (c) 2023 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