proxygen
|
#include <folly/Benchmark.h>
#include <folly/io/async/EventBase.h>
#include <folly/synchronization/Baton.h>
#include <condition_variable>
#include <mutex>
#include <thread>
Go to the source code of this file.
Functions | |
void | runTest (int iters, int numThreads) |
int | main (int argc, char *argv[]) |
Variables | |
static size_t constexpr | kMaxRead = 20 |
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 85 of file NotificationQueueBenchmark.cpp.
References argv, and folly::runBenchmarks().
void runTest | ( | int | iters, |
int | numThreads | ||
) |
Definition at line 28 of file NotificationQueueBenchmark.cpp.
References BENCHMARK_PARAM, folly::BenchmarkSuspender::dismiss(), i, kMaxRead, folly::EventBase::loopForever(), m, mutex, folly::BenchmarkSuspender::rehire(), folly::EventBase::runInEventBaseThread(), folly::EventBase::setMaxReadAtOnce(), folly::pushmi::detail::t, folly::EventBase::terminateLoopSoon(), and threads.
|
static |
Definition at line 26 of file NotificationQueueBenchmark.cpp.
Referenced by runTest().