Commit dbcba7de authored by Francois Visconte's avatar Francois Visconte Committed by Facebook Github Bot

Fix a few inconsistencies in folly benchmarks

Summary:
Avoid printing to standard output in benchmark which poison output when using
`-json_output` flag.

Make SynchronizedBenchmark run benchmark only (like any other benchmarks out
there)

Reviewed By: yfeldblum

Differential Revision: D10405010

fbshipit-source-id: b034123fcda9d8b8d6ba6967641305886cb12673
parent d949df1f
......@@ -40,7 +40,6 @@ void initStr(int len) {
vstr.clear();
vstrp.clear();
cout << "string length " << len << ':' << endl;
str.reserve(len + 1);
str.append(len, 'a');
str.append(1, 'b');
......
......@@ -491,14 +491,8 @@ BENCHMARK(SixteenThreadsSixteenMutexesPersistent, iters) {
}
int main(int argc, char** argv) {
testing::InitGoogleTest(&argc, argv);
gflags::ParseCommandLineFlags(&argc, &argv, true);
auto r = RUN_ALL_TESTS();
if (r) {
return r;
}
runBenchmarks();
return 0;
folly::runBenchmarks();
}
namespace {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment