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

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Zolotarev <deathbaba@gmail.com>2011-10-19 02:07:23 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:26:21 +0300
commit3a26304e0d4752514a6ac941b1ab759245b4cbfe (patch)
tree48b88368203d3fb8d1f9d43067b3ba3269a48066 /map/benchmark_tool
parentb922730a03d9b9df6b3fa38f1a038797feac6597 (diff)
Fixed benchmarks output formatting
Diffstat (limited to 'map/benchmark_tool')
-rw-r--r--map/benchmark_tool/api.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/map/benchmark_tool/api.cpp b/map/benchmark_tool/api.cpp
index b5a9716150..7f16e8cb56 100644
--- a/map/benchmark_tool/api.cpp
+++ b/map/benchmark_tool/api.cpp
@@ -3,7 +3,7 @@
#include "../../std/iostream.hpp"
#include "../../std/numeric.hpp"
#include "../../std/algorithm.hpp"
-
+#include "../../std/iomanip.hpp"
namespace bench
{
@@ -25,10 +25,11 @@ void AllResult::Print()
m_reading.CalcMetrics();
// 'all time', 'index time', 'feature loading time'
- cout << "all: " << m_all << ' ' << m_all - m_reading.m_all << ' ' << m_reading.m_all << endl;
- cout << "med: " << m_reading.m_med << endl;
- cout << "avg: " << m_reading.m_avg << endl;
- cout << "max: " << m_reading.m_max << endl;
+ cout << fixed << setprecision(10);
+ cout << "FRAME*1000[ median:" << m_reading.m_med * 1000 << " ";
+ cout << "avg:" << m_reading.m_avg * 1000 << " ";
+ cout << "max:" << m_reading.m_max * 1000 << " ] ";
+ cout << "TOTAL[ idx:" << m_all - m_reading.m_all << " decoding:" << m_reading.m_all << " summ:" << m_all << " ]" << endl;
}
}