proxygen
Bench.h File Reference
#include <folly/Benchmark.h>

Go to the source code of this file.

Macros

#define BENCH_GEN_IMPL(gen, prefix)
 
#define BENCH_GEN(gen)   BENCH_GEN_IMPL(gen, "")
 
#define BENCH_GEN_REL(gen)   BENCH_GEN_IMPL(gen, "%")
 

Macro Definition Documentation

#define BENCH_GEN (   gen)    BENCH_GEN_IMPL(gen, "")

Definition at line 34 of file Bench.h.

#define BENCH_GEN_IMPL (   gen,
  prefix 
)
Value:
static bool FB_ANONYMOUS_VARIABLE(benchGen) = \
__FILE__, \
[](unsigned iters) { \
const unsigned num = iters; \
while (iters--) { \
} \
return num; \
}), \
true)
#define FB_ANONYMOUS_VARIABLE(str)
Definition: Preprocessor.h:92
bool prefix(Cursor &c, uint32_t expected)
#define FB_STRINGIZE(x)
Definition: Preprocessor.h:100
const
Definition: upload.py:398
std::enable_if< boost::function_types::function_arity< decltype(&Lambda::operator())>::value==2 >::type addBenchmark(const char *file, const char *name, Lambda &&lambda)
Definition: Benchmark.h:172
auto doNotOptimizeAway(const T &datum) -> typename std::enable_if< !detail::DoNotOptimizeAwayNeedsIndirect< T >::value >::type
Definition: Benchmark.h:258

Definition at line 21 of file Bench.h.

#define BENCH_GEN_REL (   gen)    BENCH_GEN_IMPL(gen, "%")

Definition at line 35 of file Bench.h.