| 103 | |
| 104 | template <lf::scheduler Sch, lf::numa_strategy Strategy> |
| 105 | void 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 | |
| 128 | template <lf::scheduler Sch, lf::numa_strategy Strategy> |
| 129 | void uts_libfork(benchmark::State &state, int tree) { |
nothing calls this directly
no test coverage detected