pub struct Thresholds { /* private fields */ }Expand description
Ratio thresholds controlling change indicators.
Ratios are calculated as baseline time / candidate time and classified as
regression, neutral, improvement, or strong improvement.
Implementations§
Source§impl Thresholds
impl Thresholds
Sourcepub fn improvement_ratio(self, ratio: f64) -> Self
pub fn improvement_ratio(self, ratio: f64) -> Self
Sets the minimum ratio rendered as an improvement. Defaults to 1.1.
Sourcepub fn strong_improvement_ratio(self, ratio: f64) -> Self
pub fn strong_improvement_ratio(self, ratio: f64) -> Self
Sets the minimum ratio rendered as a strong improvement. Defaults to 1.8.
Sourcepub fn regression_ratio(self, ratio: f64) -> Self
pub fn regression_ratio(self, ratio: f64) -> Self
Sets the maximum ratio rendered as a regression. Defaults to 0.9.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Thresholds
impl RefUnwindSafe for Thresholds
impl Send for Thresholds
impl Sync for Thresholds
impl Unpin for Thresholds
impl UnsafeUnpin for Thresholds
impl UnwindSafe for Thresholds
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