pub struct CheckLine {
pub key: String,
pub cache_mode: CacheMode,
pub metric: String,
pub baseline_us: f64,
pub current_us: f64,
pub delta: f64,
pub allowed: f64,
pub samples: usize,
pub agreeing: usize,
pub verdict: String,
}Expand description
One line of a check.
Fields§
§key: StringThe target’s key.
cache_mode: CacheModeThe cache mode.
metric: StringThe metric.
baseline_us: f64The baseline’s value, microseconds.
current_us: f64The run’s value, microseconds.
delta: f64current / baseline - 1.
allowed: f64The allowed relative increase.
samples: usizeHow many samples the run took of this target and mode.
agreeing: usizeHow many of them are certainly at or above the run’s value of the metric
(super::Statistics::samples_at_or_above): the samples a FAIL rests on.
verdict: StringPASS, FAIL, NOISE (the increase is under the absolute floor), SHORT (the
run took fewer samples than the metric’s minimum_samples), or WARN (over the
threshold on fewer than two agreeing samples: one cold sample on a loaded runner is
a reason to re-measure, not a regression, and it does not fail).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CheckLine
impl<'de> Deserialize<'de> for CheckLine
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 JsonSchema for CheckLine
impl JsonSchema for CheckLine
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for CheckLine
Auto Trait Implementations§
impl Freeze for CheckLine
impl RefUnwindSafe for CheckLine
impl Send for CheckLine
impl Sync for CheckLine
impl Unpin for CheckLine
impl UnsafeUnpin for CheckLine
impl UnwindSafe for CheckLine
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