mirror of
https://github.com/nghttp2/nghttp2.git
synced 2026-03-22 05:56:13 +08:00
h2load: Make the names of perf metric short and concise
This commit is contained in:
@@ -55,13 +55,13 @@ PERFORMANCE STATISTICS
|
||||
~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Metric Definitions
|
||||
time for request
|
||||
request
|
||||
The duration from sending the first byte of a request to receiving
|
||||
the last byte of the response.
|
||||
time for connect
|
||||
connect
|
||||
The time taken to establish a connection, including TLS
|
||||
handshakes.
|
||||
time to 1st byte
|
||||
TTFB
|
||||
The duration until the first byte of application data is received
|
||||
from the server (decrypted if using TLS).
|
||||
req/s
|
||||
|
||||
@@ -2534,7 +2534,7 @@ template <typename F>
|
||||
requires std::invocable<F, double>
|
||||
void output_sd_stat(std::ostream &o, const std::string_view &title,
|
||||
const SDStat &st, F formatter) {
|
||||
o << std::left << std::setw(16) << title << ": " << std::right;
|
||||
o << std::left << std::setw(12) << title << ": " << std::right;
|
||||
o << std::setw(10) << formatter(st.min) << " ";
|
||||
o << std::setw(10) << formatter(st.max) << " ";
|
||||
o << std::setw(10) << formatter(st.median) << " ";
|
||||
@@ -3900,12 +3900,12 @@ traffic: )" << util::utos_funit(as_unsigned(stats.bytes_total))
|
||||
<< stats.udp_dgram_recv << " received" << std::endl;
|
||||
}
|
||||
#endif // defined(ENABLE_HTTP3)
|
||||
std::cout << " min max median p95 "
|
||||
std::cout << " min max median p95 "
|
||||
" p99 mean sd +/- sd\n";
|
||||
|
||||
output_sd_stat_duration(std::cout, "time for request"sv, ts.request);
|
||||
output_sd_stat_duration(std::cout, "time for connect"sv, ts.connect);
|
||||
output_sd_stat_duration(std::cout, "time to 1st byte"sv, ts.ttfb);
|
||||
output_sd_stat_duration(std::cout, "request"sv, ts.request);
|
||||
output_sd_stat_duration(std::cout, "connect"sv, ts.connect);
|
||||
output_sd_stat_duration(std::cout, "TTFB"sv, ts.ttfb);
|
||||
output_sd_stat(std::cout, "req/s"sv, ts.rps);
|
||||
#ifdef ENABLE_HTTP3
|
||||
if (config.is_quic()) {
|
||||
|
||||
Reference in New Issue
Block a user