Skip to content

Commit

Permalink
Merge pull request #448 from stlankes/bench
Browse files Browse the repository at this point in the history
netbench: Clap: Rework flags
  • Loading branch information
mkroening authored Aug 7, 2023
2 parents 7b31543 + 1279da1 commit 6bb8b95
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions benches/netbench/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,25 +32,20 @@ pub struct Config {
help = "number of rounds of transfer to perform"
)]
pub n_rounds: usize,
#[arg(
long = "nodelay",
short = 'd',
default_value_t = true,
help = "sets TCP in no-delay mode. Any int > 0 for true, 0 for false"
)]
#[arg(long = "nodelay", short = 'd', help = "sets TCP in no-delay mode")]
pub no_delay: bool,
#[arg(
long = "nonblocking",
short = 'b',
default_value_t = true,
help = "sets TCP in non-blocking mode. Any int > 0 for true, 0 for false"
help = "sets TCP in non-blocking mode"
)]
pub non_blocking: bool,
#[arg(
long = "thread",
short = 't',
help = "id of process to pin thread to, -1 for no pinning"
)]
long = "thread",
short = 't',
default_value_t = -1,
help = "id of process to pin thread to, -1 for no pinning"
)]
pub p_id: i8,
}

Expand Down

0 comments on commit 6bb8b95

Please sign in to comment.