Skip to content

Commit

Permalink
temp: test ip
Browse files Browse the repository at this point in the history
  • Loading branch information
eitanm-starkware committed Nov 13, 2024
1 parent 9365978 commit a568a60
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,11 @@
"num_messages": {
"description": "The amount of messages to send and receive.",
"privacy": "Public",
"value": 100000
"value": 10000
},
"output_path": {
"description": "The path of the output file.",
"privacy": "Public",
"value": "crates/papyrus_network/src/bin/network_stress_test/bootstrap_output.csv"
}
}
}
1 change: 0 additions & 1 deletion crates/papyrus_network/src/bin/network_stress_test/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ mod utils;

#[tokio::main]
async fn main() {
TestConfig::create_config_files();
let args = std::env::args().collect::<Vec<String>>();
let default_path = BOOTSTRAP_CONFIG_FILE_PATH.to_string();
let config_path = args.get(1).unwrap_or(&default_path);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"network_config.bootstrap_peer_multiaddr": {
"description": "The multiaddress of the peer node. It should include the peer's id. For more info: https://docs.libp2p.io/concepts/fundamentals/peers/",
"privacy": "Public",
"value": "/ip4/127.0.0.1/tcp/10000/p2p/12D3KooWDpJ7As7BWAwRMfu1VU2WCqNjvq387JEYKDBj4kx6nXTN"
"value": "/ip4/10.20.20.26/tcp/10000/p2p/12D3KooWDpJ7As7BWAwRMfu1VU2WCqNjvq387JEYKDBj4kx6nXTN"
},
"network_config.bootstrap_peer_multiaddr.#is_none": {
"description": "Flag for an optional field.",
Expand Down Expand Up @@ -92,11 +92,11 @@
"num_messages": {
"description": "The amount of messages to send and receive.",
"privacy": "Public",
"value": 100000
"value": 10000
},
"output_path": {
"description": "The path of the output file.",
"privacy": "Public",
"value": "crates/papyrus_network/src/bin/network_stress_test/output.csv"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ impl Default for TestConfig {
network_config: NetworkConfig::default(),
buffer_size: 1000,
message_size: 1000,
num_messages: 100000,
num_messages: 10000,
output_path: BOOTSTRAP_OUTPUT_FILE_PATH.to_string(),
}
}
Expand Down

0 comments on commit a568a60

Please sign in to comment.