Inspect
Inspect tells you where measured HTTP transfer time goes. Run it against an HTTP or HTTPS URL, save the recording and ask it to explain the observed events. Collect a second recording after a change and compare the two. The command is bitspeed-inspect; version 0.3.0 is released.
The useful distinction is between what the client saw and what it can infer. DNS events, connection attempts and response bytes are observations. An interval or median is calculated from those observations. Interpretations cite their evidence and rules. Missing or ambiguous events stay unavailable rather than quietly becoming zero.
First-byte waiting includes more than origin processing. Reading a response includes handling and scheduling as well as moving body bytes. Observed payload bytes are not total network traffic. Inspect does not identify a slow database, a saturated router or a busy CPU from one client trace.
Comparisons keep phase statistics when useful, flag changed targets, payloads, protocols and request settings, and withhold change verdicts for incomplete coverage, too few observations or overlapping ranges. They describe collected samples rather than establishing statistical confidence or a general performance improvement.
Since 0.3.0, record can send a POST body and can reuse connections across samples:
bitspeed-inspect record --method=POST --body-file=query.json --content-type=application/json https://api.example.com/search > post.json
bitspeed-inspect record --connection=warm https://example.org/ > warm.json
The body is never saved, only its size and SHA-256, so two runs can be checked for sending the same thing. A short guessable body can be recovered from its hash, so treat recordings as private. A 307 or 308 redirect to another site isn’t followed with your body. Warm mode keeps one connection pool for the whole recording; the first sample opens the connection and the rest normally reuse it. Compare won’t put a warm run against a fresh one, because they measure different things.
Since 0.2.0, compare can also guard a CI pipeline. Name the intervals that must not get slower:
bitspeed-inspect compare --fail-if-slower=first_byte_wait,connection_setup --min-change=20ms before.json after.json
It exits 0 when nothing gated got slower, 3 when compare itself finds a gated interval higher with non-overlapping ranges and above your thresholds, and 4 when it can’t judge, for example a blocked comparison or too few complete samples. Errors exit 1. The comparison output doesn’t change, and one gate line per interval goes to stderr. Overlapping ranges pass, so a noisy runner gives you a quiet build, not a false alarm.
Start with the quick start, get a binary from Download or consult the reference. Requests use fresh direct connections, ignore proxy environment variables and verify TLS normally. Inspect makes real GET requests, including redirects, so choose targets you intend to access.