mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-02 09:15:04 +02:00
txgraph: track amount of work done in linearization (preparation)
This commit is contained in:
@@ -229,8 +229,8 @@ void BenchLinearizeOptimally(benchmark::Bench& bench, const std::array<uint8_t,
|
||||
reader >> Using<DepGraphFormatter>(depgraph);
|
||||
uint64_t rng_seed = 0;
|
||||
bench.run([&] {
|
||||
auto res = Linearize(depgraph, /*max_iterations=*/10000000, rng_seed++);
|
||||
assert(res.second);
|
||||
auto [_lin, optimal, _cost] = Linearize(depgraph, /*max_iterations=*/10000000, rng_seed++);
|
||||
assert(optimal);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user