proxygen
|
#include <atomic>
#include <glog/logging.h>
#include <folly/Benchmark.h>
#include <folly/String.h>
#include <folly/container/Foreach.h>
#include <folly/gen/Base.h>
#include <folly/gen/String.h>
Go to the source code of this file.
Functions | |
BENCHMARK (StringResplitter_Big, iters) | |
BENCHMARK_RELATIVE (StringResplitter_Small, iters) | |
BENCHMARK_DRAW_LINE () | |
BENCHMARK (StringSplit_Old, iters) | |
BENCHMARK_RELATIVE (StringSplit_Gen_Vector, iters) | |
BENCHMARK (StringSplit_Old_ReuseVector, iters) | |
BENCHMARK_RELATIVE (StringSplit_Gen_ReuseVector, iters) | |
BENCHMARK_RELATIVE (StringSplit_Gen, iters) | |
BENCHMARK_RELATIVE (StringSplit_Gen_Take, iters) | |
BENCHMARK (StringUnsplit_Old, iters) | |
BENCHMARK_RELATIVE (StringUnsplit_Old_ReusedBuffer, iters) | |
BENCHMARK_RELATIVE (StringUnsplit_Gen, iters) | |
BENCHMARK_RELATIVE (StringUnsplit_Gen_ReusedBuffer, iters) | |
void | StringUnsplit_Gen (size_t iters, size_t joinSize) |
void | Lines_Gen (size_t iters, int joinSize) |
BENCHMARK (Records_EachToTuple, iters) | |
BENCHMARK_RELATIVE (Records_VectorStringPieceReused, iters) | |
BENCHMARK_RELATIVE (Records_VectorStringPiece, iters) | |
BENCHMARK_RELATIVE (Records_VectorString, iters) | |
int | main (int argc, char *argv[]) |
Variables | |
fbstring | records |
BENCHMARK | ( | StringResplitter_Big | , |
iters | |||
) |
Definition at line 68 of file StringBenchmark.cpp.
References folly::doNotOptimizeAway(), folly::gen::from(), folly::gen::map(), folly::gen::resplit(), s, and folly::gen::sum.
BENCHMARK | ( | StringSplit_Old | , |
iters | |||
) |
Definition at line 86 of file StringBenchmark.cpp.
References folly::doNotOptimizeAway(), s, folly::gen::split(), and string.
BENCHMARK | ( | StringSplit_Old_ReuseVector | , |
iters | |||
) |
Definition at line 108 of file StringBenchmark.cpp.
References folly::doNotOptimizeAway(), s, folly::gen::split(), and string.
BENCHMARK | ( | StringUnsplit_Old | , |
iters | |||
) |
Definition at line 152 of file StringBenchmark.cpp.
References folly::doNotOptimizeAway(), folly::join(), s, and folly::basic_fbstring< E, T, A, Storage >::size().
BENCHMARK | ( | Records_EachToTuple | , |
iters | |||
) |
Definition at line 239 of file StringBenchmark.cpp.
References folly::doNotOptimizeAway(), i, s, folly::gen::split(), and folly::gen::sum.
BENCHMARK_DRAW_LINE | ( | ) |
BENCHMARK_RELATIVE | ( | StringResplitter_Small | , |
iters | |||
) |
Definition at line 76 of file StringBenchmark.cpp.
References folly::BENCHMARK_DRAW_LINE(), folly::doNotOptimizeAway(), folly::gen::from(), folly::gen::map(), folly::gen::resplit(), s, and folly::gen::sum.
BENCHMARK_RELATIVE | ( | StringSplit_Gen_Vector | , |
iters | |||
) |
Definition at line 97 of file StringBenchmark.cpp.
References folly::BENCHMARK_DRAW_LINE(), folly::doNotOptimizeAway(), s, and folly::gen::split().
BENCHMARK_RELATIVE | ( | StringSplit_Gen_ReuseVector | , |
iters | |||
) |
Definition at line 120 of file StringBenchmark.cpp.
References folly::gen::appendTo(), folly::doNotOptimizeAway(), s, and folly::gen::split().
BENCHMARK_RELATIVE | ( | StringSplit_Gen | , |
iters | |||
) |
Definition at line 132 of file StringBenchmark.cpp.
References folly::gen::count, folly::doNotOptimizeAway(), s, and folly::gen::split().
BENCHMARK_RELATIVE | ( | StringSplit_Gen_Take | , |
iters | |||
) |
Definition at line 141 of file StringBenchmark.cpp.
References folly::BENCHMARK_DRAW_LINE(), folly::gen::count, folly::doNotOptimizeAway(), s, folly::gen::split(), and folly::gen::take().
BENCHMARK_RELATIVE | ( | StringUnsplit_Old_ReusedBuffer | , |
iters | |||
) |
Definition at line 162 of file StringBenchmark.cpp.
References folly::basic_fbstring< E, T, A, Storage >::clear(), folly::doNotOptimizeAway(), folly::join(), s, and folly::basic_fbstring< E, T, A, Storage >::size().
BENCHMARK_RELATIVE | ( | StringUnsplit_Gen | , |
iters | |||
) |
Definition at line 173 of file StringBenchmark.cpp.
References folly::doNotOptimizeAway(), folly::gen::from(), s, folly::basic_fbstring< E, T, A, Storage >::size(), and folly::gen::unsplit().
BENCHMARK_RELATIVE | ( | StringUnsplit_Gen_ReusedBuffer | , |
iters | |||
) |
Definition at line 182 of file StringBenchmark.cpp.
References folly::BENCHMARK_DRAW_LINE(), buffer(), folly::basic_fbstring< E, T, A, Storage >::clear(), folly::doNotOptimizeAway(), folly::gen::from(), s, folly::basic_fbstring< E, T, A, Storage >::size(), and folly::gen::unsplit().
BENCHMARK_RELATIVE | ( | Records_VectorStringPieceReused | , |
iters | |||
) |
Definition at line 252 of file StringBenchmark.cpp.
References folly::doNotOptimizeAway(), i, std::tr1::make_tuple(), folly::gen::mapped(), s, folly::gen::split(), folly::split(), and folly::gen::sum.
BENCHMARK_RELATIVE | ( | Records_VectorStringPiece | , |
iters | |||
) |
Definition at line 274 of file StringBenchmark.cpp.
References folly::doNotOptimizeAway(), i, std::tr1::make_tuple(), folly::gen::mapped(), s, folly::gen::split(), folly::split(), and folly::gen::sum.
BENCHMARK_RELATIVE | ( | Records_VectorString | , |
iters | |||
) |
Definition at line 295 of file StringBenchmark.cpp.
References folly::doNotOptimizeAway(), i, std::tr1::make_tuple(), folly::gen::mapped(), s, folly::gen::split(), folly::split(), and folly::gen::sum.
void Lines_Gen | ( | size_t | iters, |
int | joinSize | ||
) |
Definition at line 216 of file StringBenchmark.cpp.
References folly::BENCHMARK_DRAW_LINE(), BENCHMARK_PARAM, BENCHMARK_RELATIVE_PARAM, folly::gen::count, folly::doNotOptimizeAway(), i, folly::gen::lines(), s, folly::Range< Iter >::subpiece(), and folly::gen::take().
int main | ( | int | argc, |
char * | argv[] | ||
) |
void StringUnsplit_Gen | ( | size_t | iters, |
size_t | joinSize | ||
) |
Definition at line 195 of file StringBenchmark.cpp.
References folly::BENCHMARK_DRAW_LINE(), BENCHMARK_PARAM, BENCHMARK_RELATIVE_PARAM, BENCHMARK_SUSPEND, buffer(), folly::basic_fbstring< E, T, A, Storage >::clear(), folly::doNotOptimizeAway(), FOR_EACH_RANGE, folly::gen::from(), i, s, folly::basic_fbstring< E, T, A, Storage >::size(), folly::gen::unsplit(), and v.
fbstring records |
Definition at line 232 of file StringBenchmark.cpp.
Referenced by folly::test::TEST().