aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/util/reporter.cc
diff options
context:
space:
mode:
authorGravatar Eugene Brevdo <ebrevdo@google.com>2017-03-02 14:08:44 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-03-02 14:28:55 -0800
commit54c0ff4a73789ce42d71433b79e5db21b5d6c7a2 (patch)
tree2b3b01770852b6457d8501c01b8b7f09c45eed19 /tensorflow/core/util/reporter.cc
parent356e599ce55c4d6b68583cc7bcc716791f8271ef (diff)
Add BenchmarkType to TestResults proto and fix logging of C++ microbenchmarks.
C++ microbenchmarks results are now normalized by iters (like python benchmarks). Change: 149045367
Diffstat (limited to 'tensorflow/core/util/reporter.cc')
-rw-r--r--tensorflow/core/util/reporter.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/core/util/reporter.cc b/tensorflow/core/util/reporter.cc
index c4896fe2ac..ee38f81f3e 100644
--- a/tensorflow/core/util/reporter.cc
+++ b/tensorflow/core/util/reporter.cc
@@ -41,8 +41,8 @@ Status TestReporter::Benchmark(int64 iters, double cpu_time, double wall_time,
double throughput) {
if (closed_) return Status::OK();
benchmark_entry_.set_iters(iters);
- benchmark_entry_.set_cpu_time(cpu_time);
- benchmark_entry_.set_wall_time(wall_time);
+ benchmark_entry_.set_cpu_time(cpu_time / iters);
+ benchmark_entry_.set_wall_time(wall_time / iters);
benchmark_entry_.set_throughput(throughput);
return Status::OK();
}