| 56 | }; |
| 57 | |
| 58 | void 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 |
nothing calls this directly
no test coverage detected