26 using namespace folly;
31 run_pingpong_test<true, std::atomic>(iters);
35 run_pingpong_test<false, std::atomic>(iters);
40 BENCHMARK(baton_pingpong_emulated_futex_blocking, iters) {
41 run_pingpong_test<true, EmulatedFutexAtomic>(iters);
44 BENCHMARK(baton_pingpong_emulated_futex_nonblocking, iters) {
45 run_pingpong_test<false, EmulatedFutexAtomic>(iters);
57 auto thr = std::thread([=] {
58 for (
size_t i = 0;
i < iters; ++
i) {
63 for (
size_t i = 0;
i < iters; ++
i) {
76 gflags::ParseCommandLineFlags(&argc, &argv,
true);
int main(int argc, char **argv)
—— Concurrent Priority Queue Implementation ——
BENCHMARK(fbFollyGlobalBenchmarkBaseline)