| 117 | } |
| 118 | |
| 119 | static 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 | |
| 134 | BENCHMARK(CoinSelection); |
| 135 | BENCHMARK(BnBExhaustion); |
nothing calls this directly
no test coverage detected