Commit 4591d3cd authored by Paul Tarjan's avatar Paul Tarjan Committed by Owen Yamauchi

revert folly/Benchmark.cpp

Summary: revert the breaking change

Test Plan: none

Reviewed By: delong.j@fb.com

FB internal diff: D832143

Blame Revision: D830883
parent edf5a373
...@@ -210,8 +210,7 @@ static double runBenchmarkGetNSPerIteration(const BenchmarkFun& fun, ...@@ -210,8 +210,7 @@ static double runBenchmarkGetNSPerIteration(const BenchmarkFun& fun,
// the clock resolution is worse than that, it will be larger. In // the clock resolution is worse than that, it will be larger. In
// essence we're aiming at making the quantization noise 0.01%. // essence we're aiming at making the quantization noise 0.01%.
static const auto minNanoseconds = static const auto minNanoseconds =
max(FLAGS_bm_min_usec * 1000UL, max(FLAGS_bm_min_usec * 1000UL, min(resolutionInNs * 100000, 1000000000UL));
min(resolutionInNs * 100000, 1000000000ULL));
// We do measurements in several epochs and take the minimum, to // We do measurements in several epochs and take the minimum, to
// account for jitter. // account for jitter.
......
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