Struct iroh_net_bench::Opt 
source · pub struct Opt {
    pub clients: usize,
    pub streams: usize,
    pub max_streams: usize,
    pub download_size: u64,
    pub upload_size: u64,
    pub stats: bool,
    pub metrics: bool,
    pub read_unordered: bool,
    pub initial_mtu: u16,
    pub with_relay: bool,
}Fields§
§clients: usizeThe total number of clients which should be created
streams: usizeThe total number of streams which should be created
max_streams: usizeThe amount of concurrent streams which should be used
download_size: u64Number of bytes to transmit from server to client
This can use SI prefixes for sizes. E.g. 1M will transfer 1MiB, 10G will transfer 10GiB.
upload_size: u64Number of bytes to transmit from client to server
This can use SI prefixes for sizes. E.g. 1M will transfer 1MiB, 10G will transfer 10GiB.
stats: boolShow connection stats the at the end of the benchmark
metrics: boolShow iroh library counter metrics at the end of the benchmark
These metrics are process-wide, so contain metrics for clients and the server all summed up.
read_unordered: boolWhether to use the unordered read API
initial_mtu: u16Starting guess for maximum UDP payload size
with_relay: boolWhether to run a local relay and have the server and clients connect to that.
Can be combined with the DEV_RELAY_ONLY environment variable (at compile time)
to test throughput for relay-only traffic locally.
(e.g. DEV_RELAY_ONLY=true cargo run --release -- iroh --with-relay)
Trait Implementations§
source§impl Args for Opt
 
impl Args for Opt
source§fn group_id() -> Option<Id>
 
fn group_id() -> Option<Id>
ArgGroup::id][crate::ArgGroup::id] for this set of argumentssource§fn augment_args<'b>(__clap_app: Command) -> Command
 
fn augment_args<'b>(__clap_app: Command) -> Command
source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
 
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command] so it can instantiate self via
[FromArgMatches::update_from_arg_matches_mut] Read moresource§impl FromArgMatches for Opt
 
impl FromArgMatches for Opt
source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
 
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
source§fn from_arg_matches_mut(
    __clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
 
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches ) -> Result<Self, Error>
source§fn update_from_arg_matches(
    &mut self,
    __clap_arg_matches: &ArgMatches
) -> Result<(), Error>
 
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches ) -> Result<(), Error>
ArgMatches to self.source§fn update_from_arg_matches_mut(
    &mut self,
    __clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
 
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches ) -> Result<(), Error>
ArgMatches to self.