| 138 | } |
| 139 | |
| 140 | static void AddrManGetAddr(benchmark::Bench& bench) |
| 141 | { |
| 142 | AddrMan addrman{EMPTY_NETGROUPMAN, /*deterministic=*/false, ADDRMAN_CONSISTENCY_CHECK_RATIO}; |
| 143 | |
| 144 | FillAddrMan(addrman); |
| 145 | |
| 146 | bench.run([&] { |
| 147 | const auto& addresses = addrman.GetAddr(/*max_addresses=*/2500, /*max_pct=*/23, /*network=*/std::nullopt); |
| 148 | assert(addresses.size() > 0); |
| 149 | }); |
| 150 | } |
| 151 | |
| 152 | static void AddrManAddThenGood(benchmark::Bench& bench) |
| 153 | { |
nothing calls this directly
no test coverage detected