Skip to content

Add --bytes for human-readable throughput - #318

Draft
code-inflation wants to merge 2 commits into
masterfrom
feat/bytes-throughput
Draft

code-inflation wants to merge 2 commits into
masterfrom
feat/bytes-throughput

Conversation

@code-inflation

Copy link
Copy Markdown
Owner

Speed test results currently show megabits per second. Run cfspeedtest --bytes to see megabytes per second (MB/s) in the live display, final summary, and verbose boxplots. For example, 100 Mbit/s becomes 12.50 MB/s. Latency and payload sizes do not change.

CSV, JSON, and JSON-pretty still use Mbit/s and keep their existing fields. The CLI rejects --bytes with these formats.

Closes #306.

Verification

  • cargo fmt --check
  • cargo test --locked
  • cargo clippy --locked --all-targets -- -D warnings

Terminal preview

Recorded against a local test server with --bytes. The test uses the default sample counts and runs both download and upload through 10 MB.

Terminal recording showing live and completed transfer rates in MB/s.

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.

Feature Request: Add a --bytes option to see results in bytes instead of bits

1 participant