Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(network): broadcast stress test #2025

Open
wants to merge 40 commits into
base: main
Choose a base branch
from

Conversation

eitanm-starkware
Copy link
Contributor

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

@eitanm-starkware eitanm-starkware force-pushed the eitan/broadcast_stress_test branch from 69c6105 to 8fab583 Compare November 13, 2024 14:41
@eitanm-starkware eitanm-starkware force-pushed the eitan/broadcast_stress_test branch from 8fab583 to 9365978 Compare November 13, 2024 14:59
Copy link

Artifacts upload triggered. View details here

Copy link

Artifacts upload triggered. View details here

@eitanm-starkware eitanm-starkware force-pushed the eitan/broadcast_stress_test branch from ad0ec18 to a568a60 Compare November 13, 2024 15:18
Copy link

Artifacts upload triggered. View details here

Copy link

codecov bot commented Nov 13, 2024

Codecov Report

Attention: Patch coverage is 0.56818% with 175 lines in your changes missing coverage. Please review.

Project coverage is 76.89%. Comparing base (e3165c4) to head (aa5bdd3).
Report is 789 commits behind head on main.

Files with missing lines Patch % Lines
...apyrus_network/src/bin/network_stress_test/main.rs 0.00% 83 Missing ⚠️
...pyrus_network/src/bin/network_stress_test/utils.rs 0.00% 83 Missing ⚠️
..._network/src/bin/network_stress_test/converters.rs 0.00% 9 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #2025       +/-   ##
===========================================
+ Coverage   40.10%   76.89%   +36.79%     
===========================================
  Files          26      393      +367     
  Lines        1895    42638    +40743     
  Branches     1895    42638    +40743     
===========================================
+ Hits          760    32788    +32028     
- Misses       1100     7558     +6458     
- Partials       35     2292     +2257     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

Artifacts upload triggered. View details here

Comment on lines 36 to 38
let vec_size = value.len();
let payload_size = vec_size - 12;
let payload_size = vec_size - METADATA_SIZE;
let id_and_time = value.split_off(payload_size);
Copy link

Choose a reason for hiding this comment

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

The message parsing code should validate that value.len() >= METADATA_SIZE before attempting to split the message. This prevents panics from malformed messages. Consider adding:

if value.len() < METADATA_SIZE {
    return Err(NetworkError::InvalidMessageFormat);
}

Spotted by Graphite Reviewer

Is this helpful? React 👍 or 👎 to let us know.

Copy link

Artifacts upload triggered. View details here

Copy link

Artifacts upload triggered. View details here

Copy link

Benchmark movements:
tree_computation_flow performance improved 😺
tree_computation_flow time: [34.502 ms 34.707 ms 34.978 ms]
change: [-4.1773% -2.5308% -1.0323%] (p = 0.00 < 0.05)
Performance has improved.
Found 11 outliers among 100 measurements (11.00%)
2 (2.00%) high mild
9 (9.00%) high severe

Copy link

Artifacts upload triggered. View details here

Copy link

Artifacts upload triggered. View details here

Copy link

Artifacts upload triggered. View details here

Copy link

Artifacts upload triggered. View details here

Copy link

Artifacts upload triggered. View details here

Copy link

Artifacts upload triggered. View details here

Copy link

Artifacts upload triggered. View details here

Copy link

Artifacts upload triggered. View details here

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.

2 participants