Go to the source code of this file.
Value: }); \
}
std::string sformat(StringPiece fmt, Args &&...args)
std::enable_if< boost::function_types::function_arity< decltype(&Lambda::operator())>::value==2 >::type addBenchmark(const char *file, const char *name, Lambda &&lambda)
Referenced by main().
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 126 of file FingerprintBenchmark.cpp.
References BM, and folly::runBenchmarks().
127 gflags::ParseCommandLineFlags(&argc, &
argv,
true);
128 #define BM(name, min, max) \ 129 for (size_t i = min; i <= max; i *= 2) { \ 131 __FILE__, sformat("{}_{}", #name, i).c_str(), [=](int iters) { \ 136 BM(fastFingerprintIds64, 1, kMaxIds)
137 BM(slowFingerprintIds64, 1, kMaxIds)
138 BM(fastFingerprintIds96, 1, kMaxIds)
139 BM(fastFingerprintIds128, 1, kMaxIds)
140 BM(fastFingerprintTerms64, 1, kMaxTerms)
141 BM(slowFingerprintTerms64, 1, kMaxTerms)
142 BM(fastFingerprintTerms96, 1, kMaxTerms)
143 BM(fastFingerprintTerms128, 1, kMaxTerms)
#define BM(name, min, max)