Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/intgemm/intgemm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Heafield <github@kheafield.com>2019-12-14 02:49:13 +0300
committerKenneth Heafield <github@kheafield.com>2019-12-14 02:49:13 +0300
commit851ba11e3988c9689e2ed8ac9c76b7e1e06b1f4c (patch)
tree29be5fab152849d16d1bbde2705e0275c955775f
parente0a06f750cc19433bd85d078f386fa2003b79e9c (diff)
Benchmark program formatting
-rw-r--r--benchmarks/benchmark.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmarks/benchmark.cc b/benchmarks/benchmark.cc
index 0c6392e..495978c 100644
--- a/benchmarks/benchmark.cc
+++ b/benchmarks/benchmark.cc
@@ -123,12 +123,12 @@ void Summarize(std::vector<uint64_t> &stats) {
stddev += off * off;
}
stddev = sqrt(stddev / (keep - stats.begin() - 1));
- std::cout << std::setw(8) << *std::min_element(stats.begin(), stats.end()) << '\t' << std::setw(8) << avg << '\t' << std::setw(8) << stddev;
+ std::cout << std::setw(10) << *std::min_element(stats.begin(), stats.end()) << '\t' << std::setw(8) << avg << '\t' << std::setw(8) << stddev;
}
template <class Backend> void Print(std::vector<std::vector<uint64_t>> &stats, int index) {
if (stats.empty()) return;
- std::cout << Backend::kName << '\t';
+ std::cout << std::setw(16) << Backend::kName << '\t';
Summarize(stats[index]);
std::cout << '\n';
}