aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordominic <510002+dmah42@users.noreply.github.com>2024-08-13 18:12:02 +0100
committerGitHub <noreply@github.com>2024-08-13 18:12:02 +0100
commita008bf82f4aa5ad6605622040c7b2fe7512dc0c7 (patch)
treedad3c2ca2925caab7aba0223c995685f4f1faa17
parentb884717437fc468929cd47ca6a374005357ff18e (diff)
downloadgoogle-benchmark-a008bf82f4aa5ad6605622040c7b2fe7512dc0c7.tar.gz
google-benchmark-a008bf82f4aa5ad6605622040c7b2fe7512dc0c7.zip
Ensure reported Time is walltime by removing spurious scaling by threads (#1836)
* change the default to not scale
-rw-r--r--src/benchmark_runner.cc6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/benchmark_runner.cc b/src/benchmark_runner.cc
index 19f468a..a380939 100644
--- a/src/benchmark_runner.cc
+++ b/src/benchmark_runner.cc
@@ -292,12 +292,6 @@ BenchmarkRunner::IterationResults BenchmarkRunner::DoNIterations() {
// And get rid of the manager.
manager.reset();
- // Adjust real/manual time stats since they were reported per thread.
- i.results.real_time_used /= b.threads();
- i.results.manual_time_used /= b.threads();
- // If we were measuring whole-process CPU usage, adjust the CPU time too.
- if (b.measure_process_cpu_time()) i.results.cpu_time_used /= b.threads();
-
BM_VLOG(2) << "Ran in " << i.results.cpu_time_used << "/"
<< i.results.real_time_used << "\n";