Repository navigation
Replace the asciinema examples with terminal GIFs in the README - #316
Merged
Merged
Conversation
The fixture pushed each payload as fast as loopback allowed, so the recorded table climbed from about 6 Mbit/s at 100 KB to about 3.7 Gbit/s at 100 MB. That shape came from a fixed per-request sleep and a re-ramp on every sample, not from the payload size. Downloads now write paced chunks and wait for the peer to drain its socket queue. Uploads hold the response for the transfer time, because the client stops its timer on the response and the kernel buffers megabytes ahead of its writes either way. Both ends disable Nagle, which removes a 45 ms delayed-ACK stall on the small payloads, and the fixture keeps the connection alive between requests. The default sweep is 10 MB, since the paced 100 MB sweep takes about 150 seconds and exceeds the CLI's run deadline. The recorder warns when a sweep would not finish, and --down-mbit and --up-mbit change the rates.
code-inflation
marked this pull request as ready for review
November 29, 2026 11:04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The two examples in the README are asciinema recordings that no longer match the current interactive output. They show an older terminal layout without the live progress bar or the results table that fills in as each payload finishes.
This replaces them with two terminal GIFs recorded from the current build. The first shows the metadata, latency summary, and live results for a 25 MB sweep. The second shows the start of the JSON document printed by
--output-format json-prettyfor a 1 MB sweep. The command-line help and options are unchanged.The recorder's local fixture now paces transfers to 250 Mbit/s down and 100 Mbit/s up instead of sending at loopback speed. It schedules each download chunk before writing it and delays each upload response to simulate the transfer time. The recorder defaults to a 10 MB sweep and warns if the estimated run time exceeds the CLI's deadline. Use
--down-mbitand--up-mbitto change the rates or--max-durationto allow a longer run.Both recordings use the local fixture and don't contact Cloudflare. They use placeholder metadata, including an IP address from a documentation range. The throughput figures are for illustration, not a benchmark.
Terminal previews