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

Allow initial MTU to be specified in bulk benchmark #1456

Merged
merged 1 commit into from
Nov 28, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions bench/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ pub fn transport_config(opt: &Opt) -> quinn::TransportConfig {
// is configurable as a parameter.
let mut config = quinn::TransportConfig::default();
config.max_concurrent_uni_streams(opt.max_streams.try_into().unwrap());
config.initial_max_udp_payload_size(opt.initial_mtu);
config
}

Expand Down Expand Up @@ -181,6 +182,9 @@ pub struct Opt {
/// Valid options are: aes128, aes256, chacha20
#[clap(long = "cipher", default_value = "aes128")]
pub cipher: CipherSuite,
/// Starting guess for maximum UDP payload size
#[clap(long, default_value = "1200")]
pub initial_mtu: u16,
}

fn parse_byte_size(s: &str) -> Result<u64, ParseIntError> {
Expand Down