proxygen
|
#include <folly/synchronization/CallOnce.h>
#include <deque>
#include <mutex>
#include <thread>
#include <folly/Benchmark.h>
#include <glog/logging.h>
Go to the source code of this file.
Functions | |
DEFINE_int32 (threads, 16,"benchmark concurrency") | |
template<typename CallOnceFunc > | |
void | bm_impl (CallOnceFunc &&fn, size_t iters) |
BENCHMARK (StdCallOnceBench, iters) | |
BENCHMARK (FollyCallOnceBench, iters) | |
int | main (int argc, char **argv) |
BENCHMARK | ( | StdCallOnceBench | , |
iters | |||
) |
Definition at line 44 of file CallOnceBenchmark.cpp.
References bm_impl(), folly::call_once(), and flag.
BENCHMARK | ( | FollyCallOnceBench | , |
iters | |||
) |
Definition at line 51 of file CallOnceBenchmark.cpp.
References bm_impl(), folly::call_once(), and flag.
void bm_impl | ( | CallOnceFunc && | fn, |
size_t | iters | ||
) |
Definition at line 30 of file CallOnceBenchmark.cpp.
References i, folly::pushmi::detail::t, and threads.
Referenced by BENCHMARK().
DEFINE_int32 | ( | threads | , |
16 | , | ||
"benchmark concurrency" | |||
) |
int main | ( | int | argc, |
char ** | argv | ||
) |