Skip to content

Commit e673d8b

Browse files
committed
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.
1 parent 4af3547 commit e673d8b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/bench/wallet_loading.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,12 @@ static void WalletLoading(benchmark::Bench& bench, bool legacy_wallet)
122122
});
123123
}
124124

125+
#ifdef USE_BDB
125126
static void WalletLoadingLegacy(benchmark::Bench& bench) { WalletLoading(bench, /*legacy_wallet=*/true); }
126-
static void WalletLoadingDescriptors(benchmark::Bench& bench) { WalletLoading(bench, /*legacy_wallet=*/false); }
127-
128127
BENCHMARK(WalletLoadingLegacy);
128+
#endif
129+
130+
#ifdef USE_SQLITE
131+
static void WalletLoadingDescriptors(benchmark::Bench& bench) { WalletLoading(bench, /*legacy_wallet=*/false); }
129132
BENCHMARK(WalletLoadingDescriptors);
133+
#endif

0 commit comments

Comments
 (0)