pub struct BenchmarkRegressionThresholds {
pub min_throughput_ratio: Option<f64>,
pub max_avg_latency_ratio: Option<f64>,
pub max_p95_latency_ratio: Option<f64>,
pub max_peak_memory_ratio: Option<f64>,
}Fields§
§min_throughput_ratio: Option<f64>§max_avg_latency_ratio: Option<f64>§max_p95_latency_ratio: Option<f64>§max_peak_memory_ratio: Option<f64>Implementations§
Source§impl BenchmarkRegressionThresholds
impl BenchmarkRegressionThresholds
pub fn new() -> Self
pub fn with_min_throughput_ratio(self, min_throughput_ratio: f64) -> Self
pub fn with_max_avg_latency_ratio(self, max_avg_latency_ratio: f64) -> Self
pub fn with_max_p95_latency_ratio(self, max_p95_latency_ratio: f64) -> Self
pub fn with_max_peak_memory_ratio(self, max_peak_memory_ratio: f64) -> Self
pub fn is_configured(&self) -> bool
pub fn validate(&self) -> Result<(), BenchmarkError>
Trait Implementations§
Source§impl Clone for BenchmarkRegressionThresholds
impl Clone for BenchmarkRegressionThresholds
Source§fn clone(&self) -> BenchmarkRegressionThresholds
fn clone(&self) -> BenchmarkRegressionThresholds
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for BenchmarkRegressionThresholds
impl Default for BenchmarkRegressionThresholds
Source§fn default() -> BenchmarkRegressionThresholds
fn default() -> BenchmarkRegressionThresholds
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BenchmarkRegressionThresholds
impl<'de> Deserialize<'de> for BenchmarkRegressionThresholds
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BenchmarkRegressionThresholds
impl PartialEq for BenchmarkRegressionThresholds
Source§fn eq(&self, other: &BenchmarkRegressionThresholds) -> bool
fn eq(&self, other: &BenchmarkRegressionThresholds) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BenchmarkRegressionThresholds
Auto Trait Implementations§
impl Freeze for BenchmarkRegressionThresholds
impl RefUnwindSafe for BenchmarkRegressionThresholds
impl Send for BenchmarkRegressionThresholds
impl Sync for BenchmarkRegressionThresholds
impl Unpin for BenchmarkRegressionThresholds
impl UnsafeUnpin for BenchmarkRegressionThresholds
impl UnwindSafe for BenchmarkRegressionThresholds
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