23 template <
typename Counter>
31 template <
typename Counter,
size_t threadCount>
35 std::vector<std::thread> ts;
37 for (
size_t t = 0;
t < threadCount; ++
t) {
38 ts.emplace_back([&]() {
39 for (
size_t i = 0;
i < n; ++
i) {
42 for (
size_t i = 0;
i < n; ++
i) {
56 benchmark<TLRefCount, 1>(n);
60 benchmark<TLRefCount, 4>(n);
66 gflags::ParseCommandLineFlags(&argc, &argv,
true);
67 gflags::SetCommandLineOptionWithMode(
68 "bm_min_usec",
"100000", gflags::SET_FLAG_IF_DEFAULT);
int main(int argc, char **argv)
—— Concurrent Priority Queue Implementation ——
void useGlobal() noexcept
BENCHMARK(fbFollyGlobalBenchmarkBaseline)