Skip to content

Commit

Permalink
chore(network): test 10K messages 200KB size 100000 sleep 10Mps
Browse files Browse the repository at this point in the history
  • Loading branch information
eitanm-starkware committed Dec 8, 2024
1 parent 2353243 commit 14f1b36
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
"buffer_size": {
"description": "The buffer size for the network receiver.",
"privacy": "Public",
"value": 100000
"value": 200000
},
"message_size": {
"description": "The size of the payload for the test messages.",
"privacy": "Public",
"value": 100000
"value": 200000
},
"network_config.advertised_multiaddr": {
"description": "The external address other peers see this node. If this is set, the node will not try to find out which addresses it has and will write this address as external instead",
Expand Down
2 changes: 1 addition & 1 deletion crates/papyrus_network/src/bin/network_stress_test/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ async fn main() {
loop {
let message = StressTestMessage::new(i, vec![0; message_size - METADATA_SIZE], peer_id.clone());
network_channels.broadcast_topic_client.broadcast_message(message).await.unwrap();
tokio::time::sleep(std::time::Duration::from_micros(50000)).await;
tokio::time::sleep(std::time::Duration::from_micros(100000)).await;
i += 1;
if i % 10000 == 0 {
println!("Peer {} sent {} messages", peer_id, i);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
"buffer_size": {
"description": "The buffer size for the network receiver.",
"privacy": "Public",
"value": 100000
"value": 200000
},
"message_size": {
"description": "The size of the payload for the test messages.",
"privacy": "Public",
"value": 100000
"value": 200000
},
"network_config.advertised_multiaddr": {
"description": "The external address other peers see this node. If this is set, the node will not try to find out which addresses it has and will write this address as external instead",
Expand Down

0 comments on commit 14f1b36

Please sign in to comment.