MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / MakeWideGraph

Function MakeWideGraph

src/bench/cluster_linearize.cpp:31–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29 */
30template<typename SetType>
31DepGraph<SetType> MakeWideGraph(DepGraphIndex ntx)
32{
33 DepGraph<SetType> depgraph;
34 for (DepGraphIndex i = 0; i < ntx; ++i) {
35 depgraph.AddTransaction({int32_t(i) + 1, 1});
36 if (i > 0) depgraph.AddDependencies(SetType::Singleton(0), i);
37 }
38 return depgraph;
39}
40
41template<typename SetType>
42void BenchPostLinearizeWorstCase(DepGraphIndex ntx, benchmark::Bench& bench)

Callers

nothing calls this directly

Calls 2

AddTransactionMethod · 0.45
AddDependenciesMethod · 0.45

Tested by

no test coverage detected