We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b086a63 commit 6947d6cCopy full SHA for 6947d6c
src/benchmark_runner.cc
@@ -371,9 +371,7 @@ double BenchmarkRunner::GetMinTimeToApply() const {
371
}
372
373
double BenchmarkRunner::GetRelAccuracy(const IterationResults& i) const {
374
- return std::sqrt(i.seconds_pow2 / i.iters -
375
- std::pow(i.seconds / i.iters, 2.)) /
376
- (i.seconds / i.iters) / sqrt(i.iters);
+ return std::sqrt(it_res.seconds_pow2 - std::pow(i.seconds, 2.) / static_cast<double>(i.iters)) / i.seconds;
377
378
379
bool BenchmarkRunner::HasSufficientTimeToApply(
0 commit comments