Skip to content

burette: add high-connection-count mode to network test#3862

Draft
benhillis wants to merge 2 commits into
microsoft:mainfrom
benhillis:benhill/burette-net-parallel
Draft

burette: add high-connection-count mode to network test#3862
benhillis wants to merge 2 commits into
microsoft:mainfrom
benhillis:benhill/burette-net-parallel

Conversation

@benhillis

Copy link
Copy Markdown
Member

Summary

Adds a --net-parallel <N> flag to the burette network test. It sets the number of parallel iperf3 streams (-P) for the TCP TX/RX subtests. It defaults to 1, preserving the existing single-stream behavior; larger values open many concurrent connections so the harness can exercise and measure optimizations that only appear in the high-connection-count regime. UDP stays single-stream.

Metric names are unchanged, so a burette compare between a baseline and a candidate run lines up as long as the same --net-parallel value is used for both.

Details

  • petri/burette/src/main.rs: new --net-parallel CLI arg, threaded into NetworkTest.
  • petri/burette/src/tests/network.rs: parallel field; -P N added to the TCP client invocations when N > 1.
  • Guide/src/dev_guide/tests/perf.md: documents the flag.

Testing

  • cargo check -p burette
  • cargo clippy --all-targets -p burette
  • cargo doc --no-deps -p burette
  • cargo xtask fmt --fix

(burette has no unit tests.)

Add a --net-parallel flag to the burette network test that sets the number
of parallel iperf3 streams (-P) for the TCP TX/RX subtests. It defaults to
1, preserving the existing single-stream behavior, and larger values drive
many concurrent connections so the harness can measure optimizations that
only appear in the high-connection-count regime. UDP stays single-stream.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 2, 2026 17:52
@benhillis benhillis requested a review from a team as a code owner July 2, 2026 17:52
@github-actions github-actions Bot added the Guide label Jul 2, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds a new --net-parallel <N> CLI flag to the burette run --test network workflow to drive higher TCP connection counts by setting iperf3’s parallel stream count (-P N) for TCP TX/RX subtests, while keeping existing single-stream behavior by default.

Changes:

  • Introduces --net-parallel CLI argument in burette, defaulting to 1.
  • Threads the new parameter into NetworkTest and appends -P N to TCP iperf3 client invocations when N > 1.
  • Documents the new flag in the performance testing guide.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
petri/burette/src/tests/network.rs Adds a parallel field to NetworkTest and passes -P N to iperf3 for TCP modes when parallel > 1.
petri/burette/src/main.rs Adds --net-parallel CLI arg and wires it into NetworkTest construction.
Guide/src/dev_guide/tests/perf.md Documents how to use --net-parallel for high-connection-count TCP testing.

Comment thread petri/burette/src/main.rs
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants