MCPcopy Create free account
hub / github.com/ElementsProject/elements / BnBExhaustion

Function BnBExhaustion

src/bench/coin_selection.cpp:119–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119static void BnBExhaustion(benchmark::Bench& bench)
120{
121 // Setup
122 std::vector<OutputGroup> utxo_pool;
123
124 bench.run([&] {
125 // Benchmark
126 CAmount target = make_hard_case(17, utxo_pool);
127 SelectCoinsBnB(utxo_pool, target, 0); // Should exhaust
128
129 // Cleanup
130 utxo_pool.clear();
131 });
132}
133
134BENCHMARK(CoinSelection);
135BENCHMARK(BnBExhaustion);

Callers

nothing calls this directly

Calls 4

SelectCoinsBnBFunction · 0.85
make_hard_caseFunction · 0.70
runMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected