75 graph->AddTransaction(
top_refs.emplace_back(), feerate);
86 graph->GetBlockBuilder();
94 graph->AddTransaction(
bottom_tx, feerate);
97 for (
int dep = 0; dep <
deps; ++dep) {
104 if (dep <
deps - 1) {
116 bench.epochIterations(1).epochs(1).run([&] {
120 graph->GetBlockBuilder();
static void TxGraphTrim(benchmark::Bench &bench)
@ 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.