pub struct ValidatedResults {
pub results: HashMap<String, BenchmarkResult>,
pub warnings: HashMap<String, Vec<ValidationWarning>>,
pub validator: BenchmarkValidator,
}Expand description
Validated benchmark results with reliability information
Fields§
§results: HashMap<String, BenchmarkResult>Original benchmark results
warnings: HashMap<String, Vec<ValidationWarning>>Validation warnings for each benchmark
validator: BenchmarkValidatorValidator used for validation
Implementations§
Source§impl ValidatedResults
impl ValidatedResults
Sourcepub fn new(
results: HashMap<String, BenchmarkResult>,
validator: BenchmarkValidator,
) -> Self
pub fn new( results: HashMap<String, BenchmarkResult>, validator: BenchmarkValidator, ) -> Self
Create new validated results
Sourcepub fn reliability_warnings(&self) -> Option<Vec<String>>
pub fn reliability_warnings(&self) -> Option<Vec<String>>
Get reliability warnings for all benchmarks
Sourcepub fn all_reliable(&self) -> bool
pub fn all_reliable(&self) -> bool
Check if all results are reliable
Sourcepub fn reliable_count(&self) -> usize
pub fn reliable_count(&self) -> usize
Get count of reliable benchmarks
Sourcepub fn reliability_rate(&self) -> f64
pub fn reliability_rate(&self) -> f64
Get reliability rate as percentage
Sourcepub fn validation_report(&self) -> String
pub fn validation_report(&self) -> String
Generate validation report
Sourcepub fn reliable_results(&self) -> HashMap<String, BenchmarkResult>
pub fn reliable_results(&self) -> HashMap<String, BenchmarkResult>
Get only the reliable results
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ValidatedResults
impl RefUnwindSafe for ValidatedResults
impl Send for ValidatedResults
impl Sync for ValidatedResults
impl Unpin for ValidatedResults
impl UnsafeUnpin for ValidatedResults
impl UnwindSafe for ValidatedResults
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