Skip to content

feat: report the ping distribution under --debug - #130

Open
BKPepe wants to merge 1 commit into
librespeed:masterfrom
BKPepe:feat/report-ping-statistics
Open

feat: report the ping distribution under --debug#130
BKPepe wants to merge 1 commit into
librespeed:masterfrom
BKPepe:feat/report-ping-statistics

Conversation

@BKPepe

@BKPepe BKPepe commented Aug 10, 2026

Copy link
Copy Markdown

--debug reports a single average ping. That says nothing about how the
samples were spread, and the spread is usually what someone running with
--debug is trying to see: a link averaging 5 ms because every probe took
5 ms and one averaging 5 ms because probes ranged from 1 to 30 ms are not the
same link.

pro-bing already computes min, max and standard deviation in Statistics(),
so this prints what is on hand:

Ping over ICMP: min 5.71 ms, avg 5.89 ms, max 6.32 ms, stddev 0.18 ms, 10/10 replies

Replies are a raw count rather than a loss percentage. Ten probes are too few
to express as a rate, and ICMP is frequently policed separately from the data
path, so a percentage would describe the server's ICMP handling more than the
network.

ICMP only — PingAndJitter() measures over HTTP and has no equivalent figures
to report.

The test reports one average, which says nothing about how the samples were
spread. A link averaging 5 ms because every probe took 5 ms and one averaging
5 ms because probes ranged from 1 to 30 ms are not the same link, and only the
second explains a connection that feels unsteady.

pro-bing already works min, max and standard deviation out in Statistics(),
so this prints what is on hand.

Replies are shown as a raw count rather than a loss percentage. Ten probes are
too few to express as a rate, and ICMP is frequently policed separately from
the data path, so a percentage would describe the server's ICMP handling more
than the network.
Copilot AI lite review requested due to automatic review settings August 10, 2026 00:11

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants