80 graph->AddTransaction(
top_refs.emplace_back(), feerate);
91 graph->GetBlockBuilder();
99 graph->AddTransaction(
bottom_tx, feerate);
102 for (
int dep = 0; dep <
deps; ++dep) {
109 if (dep <
deps - 1) {
121 bench.epochIterations(1).epochs(1).run([&] {
125 graph->GetBlockBuilder();
static void TxGraphTrim(benchmark::Bench &bench)
I randrange(I range) noexcept
Generate a random integer in the range [0..range), with range > 0.
uint64_t randbits(int bits) noexcept
Generate a random (bits)-bit integer.
@ TOP
Refers to staging if it exists, main otherwise.
Main entry point to nanobench's benchmarking facility.
Tagged wrapper around FeeFrac to avoid unit confusion.
std::unique_ptr< TxGraph > MakeTxGraph(unsigned max_cluster_count, uint64_t max_cluster_size, uint64_t acceptable_cost, const std::function< std::strong_ordering(const TxGraph::Ref &, const TxGraph::Ref &)> &fallback_order) noexcept
Construct a new TxGraph with the specified limit on the number of transactions within a cluster,...
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.