Skip to content

Commit 5e93b1f

Browse files
committed
bench: Remove WalletLoadingLegacy benchmark
1 parent 56f959d commit 5e93b1f

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

src/bench/wallet_loading.cpp

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
#include <addresstype.h>
66
#include <bench/bench.h>
7-
#include <bitcoin-build-config.h> // IWYU pragma: keep
87
#include <consensus/amount.h>
98
#include <outputtype.h>
109
#include <primitives/transaction.h>
@@ -32,7 +31,7 @@ static void AddTx(CWallet& wallet)
3231
wallet.AddToWallet(MakeTransactionRef(mtx), TxStateInactive{});
3332
}
3433

35-
static void WalletLoading(benchmark::Bench& bench, bool legacy_wallet)
34+
static void WalletLoadingDescriptors(benchmark::Bench& bench)
3635
{
3736
const auto test_setup = MakeNoLogFileContext<TestingSetup>();
3837

@@ -42,10 +41,7 @@ static void WalletLoading(benchmark::Bench& bench, bool legacy_wallet)
4241

4342
// Setup the wallet
4443
// Loading the wallet will also create it
45-
uint64_t create_flags = 0;
46-
if (!legacy_wallet) {
47-
create_flags = WALLET_FLAG_DESCRIPTORS;
48-
}
44+
uint64_t create_flags = WALLET_FLAG_DESCRIPTORS;
4945
auto database = CreateMockableWalletDatabase();
5046
auto wallet = TestLoadWallet(std::move(database), context, create_flags);
5147

@@ -68,11 +64,5 @@ static void WalletLoading(benchmark::Bench& bench, bool legacy_wallet)
6864
});
6965
}
7066

71-
#ifdef USE_BDB
72-
static void WalletLoadingLegacy(benchmark::Bench& bench) { WalletLoading(bench, /*legacy_wallet=*/true); }
73-
BENCHMARK(WalletLoadingLegacy, benchmark::PriorityLevel::HIGH);
74-
#endif
75-
76-
static void WalletLoadingDescriptors(benchmark::Bench& bench) { WalletLoading(bench, /*legacy_wallet=*/false); }
7767
BENCHMARK(WalletLoadingDescriptors, benchmark::PriorityLevel::HIGH);
7868
} // namespace wallet

0 commit comments

Comments
 (0)