Commit 6fd74ade authored by Shucai Xiao's avatar Shucai Xiao
Browse files

refine some print out

parent 345dd037
...@@ -777,15 +777,18 @@ static void print_ins_perf(std::ostream& os, ...@@ -777,15 +777,18 @@ static void print_ins_perf(std::ostream& os,
double throughput = size / t; double throughput = size / t;
// convert to GB/s // convert to GB/s
throughput /= 1.0e9; throughput /= 1.0e6;
thrpt = std::to_string(throughput); thrpt = std::to_string(throughput);
auto floc = flps.find('.'); auto floc = flps.find('.');
if(floc != std::string::npos) if(floc != std::string::npos)
{ {
thrpt.erase(thrpt.begin() + floc + 4, thrpt.end()); thrpt.erase(thrpt.begin() + floc + 4, thrpt.end());
} }
// debugging
thrpt.append(1, ',');
thrpt.append(std::to_string(size));
} }
thrpt.append(thrpt_str.length() - thrpt.length(), ' '); thrpt.append(thrpt_str.length() + 7 - thrpt.length(), ' ');
os << tms << pers << szs << flps << thrpt << std::endl; os << tms << pers << szs << flps << thrpt << std::endl;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment