pub struct RunOptions {
pub concurrency: usize,
pub timeout_secs: u64,
pub tag: String,
pub fail_on_regression: bool,
pub targets: HashMap<String, f64>,
}Expand description
Options for configuring a benchmark run.
Fields§
§concurrency: usize§timeout_secs: u64§tag: String§fail_on_regression: bool§targets: HashMap<String, f64>Implementations§
Source§impl RunOptions
impl RunOptions
pub fn with_concurrency(self, n: usize) -> Self
pub fn with_timeout(self, secs: u64) -> Self
pub fn with_tag(self, tag: impl Into<String>) -> Self
pub fn with_fail_on_regression(self, fail: bool) -> Self
pub fn with_target(self, metric: impl Into<String>, threshold: f64) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RunOptions
impl RefUnwindSafe for RunOptions
impl Send for RunOptions
impl Sync for RunOptions
impl Unpin for RunOptions
impl UnsafeUnpin for RunOptions
impl UnwindSafe for RunOptions
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