diff options
author | Andrew Chow <achow101-github@achow101.com> | 2022-04-20 12:53:42 -0400 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2022-05-10 11:54:02 -0400 |
commit | e673d8b475995075b696208386c9e45ae7ca3e20 (patch) | |
tree | 77a90fc0814c3776700e18b0a5c261da6c955da4 /src/bench | |
parent | 4af3547ebac672a2d516e8696fd3580a766c27eb (diff) | |
download | bitcoin-e673d8b475995075b696208386c9e45ae7ca3e20.tar.xz |
bench: Enable loading benchmarks depending on what's compiled
Add descriptor wallet benchmark only if sqlite is compiled. Add legacy
wallet benchmark only if bdb is compiled.
Diffstat (limited to 'src/bench')
-rw-r--r-- | src/bench/wallet_loading.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/bench/wallet_loading.cpp b/src/bench/wallet_loading.cpp index 0bbafee76e..f611383788 100644 --- a/src/bench/wallet_loading.cpp +++ b/src/bench/wallet_loading.cpp @@ -122,8 +122,12 @@ static void WalletLoading(benchmark::Bench& bench, bool legacy_wallet) }); } +#ifdef USE_BDB static void WalletLoadingLegacy(benchmark::Bench& bench) { WalletLoading(bench, /*legacy_wallet=*/true); } -static void WalletLoadingDescriptors(benchmark::Bench& bench) { WalletLoading(bench, /*legacy_wallet=*/false); } - BENCHMARK(WalletLoadingLegacy); +#endif + +#ifdef USE_SQLITE +static void WalletLoadingDescriptors(benchmark::Bench& bench) { WalletLoading(bench, /*legacy_wallet=*/false); } BENCHMARK(WalletLoadingDescriptors); +#endif |