Repository navigation
apollo_network_benchmark: add RoundRobin mode to enum and round_duration_seconds arg - #11558
Closed
Conversation
This was referenced Jan 8, 2026
Contributor
Author
This was referenced Jan 8, 2026
sirandreww-starkware
marked this pull request as ready for review
January 8, 2026 17:43
|
There hasn't been any activity on this pull request recently, and in order to prioritize active work, it has been marked as stale. |
| pub fn should_broadcast(&self) -> bool { | ||
| match self.args.user.mode { | ||
| Mode::AllBroadcast => true, | ||
| Mode::AllBroadcast | Mode::RoundRobin => true, |
There was a problem hiding this comment.
RoundRobin mode behaves identically to AllBroadcast mode
Medium Severity
Mode::RoundRobin is grouped with Mode::AllBroadcast in should_broadcast, making all nodes broadcast simultaneously. This means selecting --mode rr produces identical behavior to --mode all — no turn-taking occurs and round_duration_seconds is never consulted anywhere. Users of this mode will get misleading behavior with no indication that round-robin isn't actually happening.
sirandreww-starkware
force-pushed
the
01-08-apollo_network_benchmark_add_message_index_detection_mechanism
branch
from
February 16, 2026 09:10
a581d33 to
c7ca4ed
Compare
sirandreww-starkware
force-pushed
the
01-08-apollo_network_benchmark_add_roundrobin_mode_to_enum_and_round_duration_seconds_arg
branch
from
February 16, 2026 09:10
5027f26 to
64dcc25
Compare
sirandreww-starkware
force-pushed
the
01-08-apollo_network_benchmark_add_message_index_detection_mechanism
branch
from
February 19, 2026 07:24
c7ca4ed to
f10f148
Compare
sirandreww-starkware
force-pushed
the
01-08-apollo_network_benchmark_add_roundrobin_mode_to_enum_and_round_duration_seconds_arg
branch
from
February 19, 2026 07:24
64dcc25 to
8cd5e64
Compare
This was referenced Feb 19, 2026
sirandreww-starkware
force-pushed
the
01-08-apollo_network_benchmark_add_roundrobin_mode_to_enum_and_round_duration_seconds_arg
branch
from
February 19, 2026 08:04
8cd5e64 to
f8aaeb3
Compare
sirandreww-starkware
force-pushed
the
01-08-apollo_network_benchmark_add_message_index_detection_mechanism
branch
from
March 16, 2026 15:13
6bed8fb to
2186fdd
Compare
sirandreww-starkware
force-pushed
the
01-08-apollo_network_benchmark_add_roundrobin_mode_to_enum_and_round_duration_seconds_arg
branch
from
March 16, 2026 15:13
f8aaeb3 to
04b68d7
Compare
sirandreww-starkware
force-pushed
the
01-08-apollo_network_benchmark_add_roundrobin_mode_to_enum_and_round_duration_seconds_arg
branch
from
March 22, 2026 17:09
04b68d7 to
bbb74b0
Compare
sirandreww-starkware
force-pushed
the
01-08-apollo_network_benchmark_add_message_index_detection_mechanism
branch
from
March 22, 2026 17:09
2186fdd to
7672cb4
Compare
sirandreww-starkware
force-pushed
the
01-08-apollo_network_benchmark_add_message_index_detection_mechanism
branch
from
March 30, 2026 11:08
7672cb4 to
a85e9be
Compare
sirandreww-starkware
force-pushed
the
01-08-apollo_network_benchmark_add_roundrobin_mode_to_enum_and_round_duration_seconds_arg
branch
from
March 30, 2026 11:08
bbb74b0 to
3cf9aa8
Compare
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.



Note
Low Risk
Changes are limited to benchmark CLI/options and a small gating condition for whether a node sends messages; no production networking logic is modified.
Overview
Adds a new stress-test
Mode::RoundRobin(CLI valuerr) and a corresponding--round-duration-secondsargument (default3) to configure how long each node should broadcast before switching.Updates
BroadcastNetworkStressTestNode::should_broadcastto treatRoundRobinas a broadcasting mode (same decision path asAllBroadcast), enabling message sender startup whenmode=rr.Written by Cursor Bugbot for commit 3cf9aa8. This will update automatically on new commits. Configure here.