h2load: Improve readability of traffic numbers

This commit is contained in:
Tatsuhiro Tsujikawa 2016-01-11 18:06:26 +09:00
parent afc6f556d1
commit 0697de4691
1 changed files with 7 additions and 3 deletions

View File

@ -2329,9 +2329,13 @@ requests: )" << stats.req_todo << " total, " << stats.req_started
<< stats.req_timedout << R"( timeout << stats.req_timedout << R"( timeout
status codes: )" << stats.status[2] << " 2xx, " << stats.status[3] << " 3xx, " status codes: )" << stats.status[2] << " 2xx, " << stats.status[3] << " 3xx, "
<< stats.status[4] << " 4xx, " << stats.status[5] << R"( 5xx << stats.status[4] << " 4xx, " << stats.status[5] << R"( 5xx
traffic: )" << stats.bytes_total << " bytes total, " << stats.bytes_head traffic: )" << util::utos_with_funit(stats.bytes_total) << "B ("
<< " bytes headers (space savings " << header_space_savings * 100 << stats.bytes_total << ") total, "
<< "%), " << stats.bytes_body << R"( bytes data << util::utos_with_funit(stats.bytes_head) << "B ("
<< stats.bytes_head << ") headers (space savings "
<< header_space_savings * 100 << "%), "
<< util::utos_with_funit(stats.bytes_body) << "B ("
<< stats.bytes_body << R"() data
min max mean sd +/- sd min max mean sd +/- sd
time for request: )" << std::setw(10) << util::format_duration(ts.request.min) time for request: )" << std::setw(10) << util::format_duration(ts.request.min)
<< " " << std::setw(10) << util::format_duration(ts.request.max) << " " << std::setw(10) << util::format_duration(ts.request.max)