proxygen
|
#include <folly/fibers/FiberManager.h>
#include <folly/fibers/FiberManagerMap.h>
#include <queue>
#include <folly/Benchmark.h>
#include <folly/fibers/SimpleLoopController.h>
#include <folly/init/Init.h>
#include <folly/io/async/EventBase.h>
Go to the source code of this file.
Functions | |
void | runBenchmark (size_t numAwaits, size_t toSend) |
BENCHMARK (FiberManagerBasicOneAwait, iters) | |
BENCHMARK (FiberManagerBasicFiveAwaits, iters) | |
BENCHMARK (FiberManagerCreateDestroy, iters) | |
BENCHMARK (FiberManagerAllocateDeallocatePattern, iters) | |
BENCHMARK (FiberManagerAllocateLargeChunk, iters) | |
int | main (int argc, char **argv) |
Variables | |
static size_t | sNumAwaits |
BENCHMARK | ( | FiberManagerBasicOneAwait | , |
iters | |||
) |
BENCHMARK | ( | FiberManagerBasicFiveAwaits | , |
iters | |||
) |
BENCHMARK | ( | FiberManagerCreateDestroy | , |
iters | |||
) |
Definition at line 75 of file FibersBenchmark.cpp.
References folly::fibers::getFiberManager(), i, and folly::EventBase::loop().
BENCHMARK | ( | FiberManagerAllocateDeallocatePattern | , |
iters | |||
) |
Definition at line 84 of file FibersBenchmark.cpp.
References folly::fibers::FiberManager::addTask(), folly::fibers::FiberManager::fibersPoolSize(), i, folly::fibers::FiberManager::loopUntilNoReady(), and folly::fibers::FiberManager::Options::maxFibersPoolSize.
BENCHMARK | ( | FiberManagerAllocateLargeChunk | , |
iters | |||
) |
Definition at line 107 of file FibersBenchmark.cpp.
References folly::fibers::FiberManager::addTask(), folly::fibers::FiberManager::fibersPoolSize(), i, folly::fibers::FiberManager::loopUntilNoReady(), and folly::fibers::FiberManager::Options::maxFibersPoolSize.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 131 of file FibersBenchmark.cpp.
References folly::init(), and folly::runBenchmarks().
void runBenchmark | ( | size_t | numAwaits, |
size_t | toSend | ||
) |
Definition at line 31 of file FibersBenchmark.cpp.
References folly::fibers::FiberManager::addTask(), folly::fibers::await(), i, loop(), folly::fibers::FiberManager::loopController(), folly::gen::move, and sNumAwaits.
Referenced by BENCHMARK().
|
static |
Definition at line 29 of file FibersBenchmark.cpp.
Referenced by runBenchmark().