Go to the source code of this file.
|
void | zeroCopyOn (unsigned iters, size_t bufferSize, size_t numClients=1) |
|
void | zeroCopyOff (unsigned iters, size_t bufferSize, size_t numClients=1) |
|
void | zeroCopyOnMulti (unsigned iters, size_t bufferSize) |
|
void | zeroCopyOffMulti (unsigned iters, size_t bufferSize) |
|
| BENCHMARK_DRAW_LINE () |
|
| DEFINE_bool (client, false,"client mode") |
|
| DEFINE_bool (server, false,"server mode") |
|
| DEFINE_bool (zeroCopy, false,"use zerocopy") |
|
| DEFINE_int32 (numLoops, kMaxLoops,"number of loops") |
|
| DEFINE_int32 (bufferSize, 524288,"buffer size") |
|
| DEFINE_int32 (port, 33130,"port") |
|
| DEFINE_string (host,"::1","host") |
|
int | main (int argc, char **argv) |
|
DEFINE_bool |
( |
client |
, |
|
|
false |
, |
|
|
"client mode" |
|
|
) |
| |
DEFINE_bool |
( |
server |
, |
|
|
false |
, |
|
|
"server mode" |
|
|
) |
| |
DEFINE_bool |
( |
zeroCopy |
, |
|
|
false |
, |
|
|
"use zerocopy" |
|
|
) |
| |
DEFINE_int32 |
( |
numLoops |
, |
|
|
kMaxLoops |
, |
|
|
"number of loops" |
|
|
) |
| |
DEFINE_int32 |
( |
bufferSize |
, |
|
|
524288 |
, |
|
|
"buffer size" |
|
|
) |
| |
DEFINE_int32 |
( |
port |
, |
|
|
33130 |
, |
|
|
"port" |
|
|
) |
| |
DEFINE_string |
( |
host |
, |
|
|
"::1" |
, |
|
|
"host" |
|
|
) |
| |
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 132 of file ZeroCopyBenchmark.cpp.
References folly::runBenchmarks().
133 gflags::ParseCommandLineFlags(&argc, &
argv,
true);
142 }
else if (FLAGS_server) {
143 runServer(FLAGS_port, FLAGS_numLoops, FLAGS_zeroCopy, FLAGS_bufferSize);
void zeroCopyOff |
( |
unsigned |
iters, |
|
|
size_t |
bufferSize, |
|
|
size_t |
numClients = 1 |
|
) |
| |
void zeroCopyOffMulti |
( |
unsigned |
iters, |
|
|
size_t |
bufferSize |
|
) |
| |
void zeroCopyOn |
( |
unsigned |
iters, |
|
|
size_t |
bufferSize, |
|
|
size_t |
numClients = 1 |
|
) |
| |
void zeroCopyOnMulti |
( |
unsigned |
iters, |
|
|
size_t |
bufferSize |
|
) |
| |
auto constexpr kMaxLoops = 20000 |
|
static |
auto constexpr kNumClients = 40 |
|
static |