proxygen
|
#include <atomic>
#include <glog/logging.h>
#include <folly/Benchmark.h>
#include <folly/gen/Base.h>
Go to the source code of this file.
Classes | |
struct | FibYielder |
Functions | |
static std::atomic< int > | testSize (1000) |
BENCHMARK (Sum_Basic_NoGen, iters) | |
BENCHMARK_RELATIVE (Sum_Basic_Gen, iters) | |
BENCHMARK_DRAW_LINE () | |
BENCHMARK (Sum_Vector_NoGen, iters) | |
BENCHMARK_RELATIVE (Sum_Vector_Gen, iters) | |
BENCHMARK (Member, iters) | |
BENCHMARK_RELATIVE (MapMember, iters) | |
BENCHMARK (Count_Vector_NoGen, iters) | |
BENCHMARK_RELATIVE (Count_Vector_Gen, iters) | |
BENCHMARK (Fib_Sum_NoGen, iters) | |
BENCHMARK_RELATIVE (Fib_Sum_Gen, iters) | |
BENCHMARK_RELATIVE (Fib_Sum_Gen_Limit, iters) | |
BENCHMARK_RELATIVE (Fib_Sum_Gen_Static, iters) | |
BENCHMARK (VirtualGen_0Virtual, iters) | |
BENCHMARK_RELATIVE (VirtualGen_1Virtual, iters) | |
BENCHMARK_RELATIVE (VirtualGen_2Virtual, iters) | |
BENCHMARK_RELATIVE (VirtualGen_3Virtual, iters) | |
BENCHMARK (Concat_NoGen, iters) | |
BENCHMARK_RELATIVE (Concat_Gen, iters) | |
BENCHMARK (Composed_NoGen, iters) | |
BENCHMARK_RELATIVE (Composed_Gen, iters) | |
BENCHMARK_RELATIVE (Composed_GenRegular, iters) | |
BENCHMARK (Sample, iters) | |
int | main (int argc, char *argv[]) |
Variables | |
static vector< int > | testVector |
static vector< vector< int > > | testVectorVector |
static vector< fbstring > | strings |
auto | square = [](int x) { return x * x; } |
BENCHMARK | ( | Sum_Basic_NoGen | , |
iters | |||
) |
Definition at line 52 of file BaseBenchmark.cpp.
References folly::doNotOptimizeAway(), i, s, and testSize().
BENCHMARK | ( | Sum_Vector_NoGen | , |
iters | |||
) |
Definition at line 74 of file BaseBenchmark.cpp.
References folly::doNotOptimizeAway(), i, and s.
BENCHMARK | ( | Member | , |
iters | |||
) |
Definition at line 94 of file BaseBenchmark.cpp.
References folly::doNotOptimizeAway(), folly::gen::from(), folly::gen::member(), s, folly::basic_fbstring< char >::size(), and folly::gen::sum.
BENCHMARK | ( | Count_Vector_NoGen | , |
iters | |||
) |
Definition at line 120 of file BaseBenchmark.cpp.
References folly::doNotOptimizeAway(), and s.
BENCHMARK | ( | Fib_Sum_NoGen | , |
iters | |||
) |
Definition at line 148 of file BaseBenchmark.cpp.
References a, b, folly::doNotOptimizeAway(), fib(), s, testSize(), and v.
BENCHMARK | ( | VirtualGen_0Virtual | , |
iters | |||
) |
Definition at line 226 of file BaseBenchmark.cpp.
References folly::doNotOptimizeAway(), folly::gen::map(), s, folly::gen::seq(), square, and folly::gen::sum.
BENCHMARK | ( | Concat_NoGen | , |
iters | |||
) |
Definition at line 272 of file BaseBenchmark.cpp.
References folly::doNotOptimizeAway(), i, and s.
BENCHMARK | ( | Composed_NoGen | , |
iters | |||
) |
Definition at line 294 of file BaseBenchmark.cpp.
References folly::doNotOptimizeAway(), i, and s.
BENCHMARK | ( | Sample | , |
iters | |||
) |
Definition at line 323 of file BaseBenchmark.cpp.
References folly::doNotOptimizeAway(), s, folly::gen::sample(), folly::gen::seq(), and folly::gen::sum.
BENCHMARK_DRAW_LINE | ( | ) |
BENCHMARK_RELATIVE | ( | Sum_Basic_Gen | , |
iters | |||
) |
Definition at line 63 of file BaseBenchmark.cpp.
References folly::BENCHMARK_DRAW_LINE(), folly::doNotOptimizeAway(), folly::gen::range(), s, folly::gen::sum, and testSize().
BENCHMARK_RELATIVE | ( | Sum_Vector_Gen | , |
iters | |||
) |
Definition at line 84 of file BaseBenchmark.cpp.
References folly::BENCHMARK_DRAW_LINE(), folly::doNotOptimizeAway(), folly::gen::from(), s, and folly::gen::sum.
BENCHMARK_RELATIVE | ( | MapMember | , |
iters | |||
) |
Definition at line 106 of file BaseBenchmark.cpp.
References folly::BENCHMARK_DRAW_LINE(), folly::doNotOptimizeAway(), folly::gen::from(), folly::gen::map(), s, and folly::gen::sum.
BENCHMARK_RELATIVE | ( | Count_Vector_Gen | , |
iters | |||
) |
Definition at line 132 of file BaseBenchmark.cpp.
References folly::BENCHMARK_DRAW_LINE(), folly::gen::count, folly::doNotOptimizeAway(), folly::gen::filter(), folly::gen::from(), and s.
BENCHMARK_RELATIVE | ( | Fib_Sum_Gen | , |
iters | |||
) |
Definition at line 168 of file BaseBenchmark.cpp.
References a, b, folly::doNotOptimizeAway(), fib(), GENERATOR, s, folly::gen::sum, folly::gen::take(), testSize(), and folly::fibers::yield().
BENCHMARK_RELATIVE | ( | Fib_Sum_Gen_Limit | , |
iters | |||
) |
Definition at line 185 of file BaseBenchmark.cpp.
References a, b, folly::doNotOptimizeAway(), fib(), GENERATOR, s, folly::gen::sum, testSize(), and folly::fibers::yield().
BENCHMARK_RELATIVE | ( | Fib_Sum_Gen_Static | , |
iters | |||
) |
Definition at line 215 of file BaseBenchmark.cpp.
References folly::BENCHMARK_DRAW_LINE(), folly::doNotOptimizeAway(), fib(), s, folly::gen::sum, folly::gen::take(), and testSize().
BENCHMARK_RELATIVE | ( | VirtualGen_1Virtual | , |
iters | |||
) |
Definition at line 237 of file BaseBenchmark.cpp.
References folly::doNotOptimizeAway(), folly::gen::map(), s, folly::gen::seq(), square, and folly::gen::sum.
BENCHMARK_RELATIVE | ( | VirtualGen_2Virtual | , |
iters | |||
) |
Definition at line 248 of file BaseBenchmark.cpp.
References folly::doNotOptimizeAway(), folly::gen::map(), s, folly::gen::seq(), square, and folly::gen::sum.
BENCHMARK_RELATIVE | ( | VirtualGen_3Virtual | , |
iters | |||
) |
Definition at line 259 of file BaseBenchmark.cpp.
References folly::BENCHMARK_DRAW_LINE(), folly::doNotOptimizeAway(), folly::gen::map(), s, folly::gen::seq(), square, and folly::gen::sum.
BENCHMARK_RELATIVE | ( | Concat_Gen | , |
iters | |||
) |
Definition at line 284 of file BaseBenchmark.cpp.
References folly::BENCHMARK_DRAW_LINE(), folly::doNotOptimizeAway(), folly::gen::from(), folly::gen::rconcat, s, and folly::gen::sum.
BENCHMARK_RELATIVE | ( | Composed_Gen | , |
iters | |||
) |
Definition at line 304 of file BaseBenchmark.cpp.
References folly::doNotOptimizeAway(), folly::gen::from(), folly::gen::map(), s, square, and folly::gen::sum.
BENCHMARK_RELATIVE | ( | Composed_GenRegular | , |
iters | |||
) |
Definition at line 313 of file BaseBenchmark.cpp.
References folly::BENCHMARK_DRAW_LINE(), folly::doNotOptimizeAway(), folly::gen::from(), folly::gen::map(), s, square, and folly::gen::sum.
int main | ( | int | argc, |
char * | argv[] | ||
) |
|
static |
Referenced by BENCHMARK(), and BENCHMARK_RELATIVE().
Definition at line 50 of file BaseBenchmark.cpp.
Referenced by BENCHMARK(), and BENCHMARK_RELATIVE().
|
static |
Definition at line 44 of file BaseBenchmark.cpp.
Referenced by testing::gtest_printers_test::AllowsGenericStreamingAndImplicitConversionTemplate< T >::operator bool(), testing::internal::UniversalTersePrinter< wchar_t * >::Print(), TEST(), testing::gtest_printers_test::TEST(), and testString2Integral().
|
static |
Definition at line 33 of file BaseBenchmark.cpp.
Definition at line 38 of file BaseBenchmark.cpp.