pub struct ChunkedCommand {Show 23 fields
pub target: Option<String>,
pub targets_file: Option<PathBuf>,
pub max_concurrency: u32,
pub spec: Option<PathBuf>,
pub base_path: Option<String>,
pub operation_id: Option<String>,
pub method: String,
pub concurrency: u32,
pub duration: Duration,
pub chunk_size_bytes: usize,
pub total_size_bytes: usize,
pub raw_body: bool,
pub chunk_interval_ms: u64,
pub headers: HashMap<String, String>,
pub insecure: bool,
pub validate_requests: bool,
pub export_requests: bool,
pub output: PathBuf,
pub rps: Option<u32>,
pub cps: bool,
pub rounds: Option<u32>,
pub repeat_until: Option<Duration>,
pub keep_rounds: Option<u32>,
}Expand description
Options shared by every bench-chunked mode.
Fields§
§target: Option<String>Single target URL. Mutually exclusive with targets_file.
targets_file: Option<PathBuf>File with multiple targets (same format as bench --targets-file).
max_concurrency: u32Max targets running at once in multi-target mode.
spec: Option<PathBuf>§base_path: Option<String>§operation_id: Option<String>§method: String§concurrency: u32§duration: Duration§chunk_size_bytes: usize§total_size_bytes: usize§raw_body: boolSend raw X filler regardless of the declared Content-Type.
chunk_interval_ms: u64§headers: HashMap<String, String>§insecure: bool§validate_requests: bool§export_requests: bool§output: PathBuf§rps: Option<u32>Per-target cap on request starts per second (shared by its workers).
cps: boolNew TCP/TLS connection per request, so connections/s = requests/s.
rounds: Option<u32>Campaign: run the whole plan this many times.
repeat_until: Option<Duration>Campaign: keep starting new rounds until this much wall clock elapsed.
keep_rounds: Option<u32>Campaign: keep only the newest N round_* dirs.
Implementations§
Trait Implementations§
Source§impl Clone for ChunkedCommand
impl Clone for ChunkedCommand
Auto Trait Implementations§
impl Freeze for ChunkedCommand
impl RefUnwindSafe for ChunkedCommand
impl Send for ChunkedCommand
impl Sync for ChunkedCommand
impl Unpin for ChunkedCommand
impl UnsafeUnpin for ChunkedCommand
impl UnwindSafe for ChunkedCommand
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more