pub struct BenchmarkRegressionPolicy {
pub max_success_rate_drop: f64,
pub max_throughput_drop: f64,
pub max_p95_ttft_increase: f64,
pub max_p95_total_latency_increase: f64,
}Expand description
Allowed degradation from a baseline report.
Fields§
§max_success_rate_drop: f64Maximum absolute success-rate decrease.
max_throughput_drop: f64Maximum throughput decrease relative to baseline.
max_p95_ttft_increase: f64Maximum p95 TTFT increase relative to baseline.
max_p95_total_latency_increase: f64Maximum p95 total-latency increase relative to baseline.
Implementations§
Source§impl BenchmarkRegressionPolicy
impl BenchmarkRegressionPolicy
Sourcepub fn new(
max_success_rate_drop: f64,
max_throughput_drop: f64,
max_p95_ttft_increase: f64,
max_p95_total_latency_increase: f64,
) -> Result<Self, ProviderBenchmarkError>
pub fn new( max_success_rate_drop: f64, max_throughput_drop: f64, max_p95_ttft_increase: f64, max_p95_total_latency_increase: f64, ) -> Result<Self, ProviderBenchmarkError>
Creates a validated comparison policy.
§Errors
Returns ProviderBenchmarkError when any ratio is non-finite or
outside zero through one.
Trait Implementations§
Source§impl Clone for BenchmarkRegressionPolicy
impl Clone for BenchmarkRegressionPolicy
Source§fn clone(&self) -> BenchmarkRegressionPolicy
fn clone(&self) -> BenchmarkRegressionPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BenchmarkRegressionPolicy
Source§impl Debug for BenchmarkRegressionPolicy
impl Debug for BenchmarkRegressionPolicy
Source§impl<'de> Deserialize<'de> for BenchmarkRegressionPolicy
impl<'de> Deserialize<'de> for BenchmarkRegressionPolicy
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
impl StructuralPartialEq for BenchmarkRegressionPolicy
Auto Trait Implementations§
impl Freeze for BenchmarkRegressionPolicy
impl RefUnwindSafe for BenchmarkRegressionPolicy
impl Send for BenchmarkRegressionPolicy
impl Sync for BenchmarkRegressionPolicy
impl Unpin for BenchmarkRegressionPolicy
impl UnsafeUnpin for BenchmarkRegressionPolicy
impl UnwindSafe for BenchmarkRegressionPolicy
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