pub struct BenchmarkReport {
pub results: Vec<BenchmarkResult>,
}Expand description
A full benchmark report (PSP-8 System 13 metrics).
Fields§
§results: Vec<BenchmarkResult>Implementations§
Source§impl BenchmarkReport
impl BenchmarkReport
pub fn new() -> Self
pub fn add(&mut self, result: BenchmarkResult)
pub fn total(&self) -> usize
Sourcepub fn hard_pass_rate(&self) -> f64
pub fn hard_pass_rate(&self) -> f64
Final hard-pass rate.
Sourcepub fn residual_certified_rate(&self) -> f64
pub fn residual_certified_rate(&self) -> f64
Residual-certified termination rate.
Sourcepub fn false_stability_rate(&self) -> f64
pub fn false_stability_rate(&self) -> f64
False-stability rate. This MUST be zero for a conformant implementation.
Sourcepub fn regression_rate(&self) -> f64
pub fn regression_rate(&self) -> f64
Regression-after-commit rate.
Sourcepub fn preserves_failures(&self) -> bool
pub fn preserves_failures(&self) -> bool
Whether the report preserves failures (a report of only successes that
hides certified/failed runs would violate System 13). True if the report
retains every case it was given — which it always does, since add
appends unconditionally. This predicate exists to assert the invariant in
tests and to document it.
Sourcepub fn is_correctness_conformant(&self) -> bool
pub fn is_correctness_conformant(&self) -> bool
Whether the implementation is correctness-conformant: no false-stability outcomes occurred.
Trait Implementations§
Source§impl Clone for BenchmarkReport
impl Clone for BenchmarkReport
Source§fn clone(&self) -> BenchmarkReport
fn clone(&self) -> BenchmarkReport
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 moreSource§impl Debug for BenchmarkReport
impl Debug for BenchmarkReport
Source§impl Default for BenchmarkReport
impl Default for BenchmarkReport
Source§fn default() -> BenchmarkReport
fn default() -> BenchmarkReport
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BenchmarkReport
impl<'de> Deserialize<'de> for BenchmarkReport
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 BenchmarkReport
impl PartialEq for BenchmarkReport
Source§fn eq(&self, other: &BenchmarkReport) -> bool
fn eq(&self, other: &BenchmarkReport) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for BenchmarkReport
impl Serialize for BenchmarkReport
impl StructuralPartialEq for BenchmarkReport
Auto Trait Implementations§
impl Freeze for BenchmarkReport
impl RefUnwindSafe for BenchmarkReport
impl Send for BenchmarkReport
impl Sync for BenchmarkReport
impl Unpin for BenchmarkReport
impl UnsafeUnpin for BenchmarkReport
impl UnwindSafe for BenchmarkReport
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.