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

Function uts_libfork_alloc

bench/source/uts/libfork.cpp:105–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103
104template <lf::scheduler Sch, lf::numa_strategy Strategy>
105void uts_libfork_alloc(benchmark::State &state, int tree) {
106
107 state.counters["green_threads"] = state.range(0);
108
109 Sch sch(state.range(0));
110
111 setup_tree(tree);
112
113 volatile int depth = 0;
114 Node root;
115
116 result r;
117
118 for (auto _ : state) {
119 uts_initRoot(&root, type);
120 r = sync_wait(sch, uts_alloc, depth, &root);
121 }
122
123 if (r != result_tree(tree)) {
124 std::cerr << "lf uts " << tree << " failed" << std::endl;
125 }
126}
127
128template <lf::scheduler Sch, lf::numa_strategy Strategy>
129void uts_libfork(benchmark::State &state, int tree) {

Callers

nothing calls this directly

Calls 4

setup_treeFunction · 0.85
uts_initRootFunction · 0.85
sync_waitFunction · 0.85
result_treeFunction · 0.85

Tested by

no test coverage detected