proxygen
|
#include <vector>
#include <folly/Benchmark.h>
#include <folly/io/Cursor.h>
#include <folly/io/IOBuf.h>
#include <folly/portability/GFlags.h>
Go to the source code of this file.
Functions | |
BENCHMARK (reserveBenchmark, iters) | |
BENCHMARK (chainBenchmark, iters) | |
unique_ptr< IOBuf > | poolGetIOBuf () |
void | poolPutIOBuf (unique_ptr< IOBuf > &&buf) |
BENCHMARK (poolBenchmark, iters) | |
void | setNumbers (size_t size, size_t num) |
int | main (int argc, char **argv) |
Variables | |
size_t | buf_size = 0 |
size_t | num_bufs = 0 |
vector< unique_ptr< IOBuf > > | bufPool |
BENCHMARK | ( | reserveBenchmark | , |
iters | |||
) |
Definition at line 32 of file NetworkBenchmark.cpp.
References folly::IOBuf::append(), buf_size, folly::IOBuf::create(), num_bufs, and folly::IOBuf::reserve().
BENCHMARK | ( | chainBenchmark | , |
iters | |||
) |
Definition at line 43 of file NetworkBenchmark.cpp.
References folly::IOBuf::append(), buf_size, folly::IOBuf::create(), folly::gen::move, num_bufs, and folly::IOBuf::prependChain().
BENCHMARK | ( | poolBenchmark | , |
iters | |||
) |
Definition at line 76 of file NetworkBenchmark.cpp.
References folly::gen::move, num_bufs, poolGetIOBuf(), poolPutIOBuf(), and folly::IOBuf::prependChain().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 151 of file NetworkBenchmark.cpp.
References folly::runBenchmarks(), and setNumbers().
|
inline |
Definition at line 55 of file NetworkBenchmark.cpp.
References folly::IOBuf::append(), buf_size, folly::IOBuf::create(), and folly::gen::move.
Referenced by BENCHMARK().
|
inline |
Definition at line 67 of file NetworkBenchmark.cpp.
References folly::gen::move, cpp.ast::next(), and folly::IOBuf::pop().
Referenced by BENCHMARK().
void setNumbers | ( | size_t | size, |
size_t | num | ||
) |
Definition at line 88 of file NetworkBenchmark.cpp.
References buf_size, num_bufs, and folly::size().
Referenced by main().
size_t buf_size = 0 |
Definition at line 29 of file NetworkBenchmark.cpp.
Referenced by BENCHMARK(), poolGetIOBuf(), and setNumbers().
Definition at line 54 of file NetworkBenchmark.cpp.
size_t num_bufs = 0 |
Definition at line 30 of file NetworkBenchmark.cpp.
Referenced by BENCHMARK(), and setNumbers().