MCPcopy Create free account
hub / github.com/ConorWilliams/libfork / uts_tmc

Function uts_tmc

bench/source/uts/tmc.cpp:58–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56};
57
58void uts_tmc(benchmark::State &state, int tree) {
59
60 state.counters["green_threads"] = state.range(0);
61
62 setup_tree(tree);
63
64 volatile int depth = 0;
65 Node root;
66
67 result r;
68
69 tmc::cpu_executor().set_thread_count(state.range(0)).init();
70
71 for (auto _ : state) {
72 uts_initRoot(&root, type);
73 r = tmc::post_waitable(tmc::cpu_executor(), uts(depth, &root), 0).get();
74 }
75
76 tmc::cpu_executor().teardown();
77
78 if (r != result_tree(tree)) {
79 std::cerr << "lf uts " << tree << " failed" << std::endl;
80 }
81}
82
83} // namespace
84

Callers

nothing calls this directly

Calls 5

setup_treeFunction · 0.85
uts_initRootFunction · 0.85
result_treeFunction · 0.85
utsFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected