pub struct BenchmarkReport {
pub title: String,
pub timestamp: String,
pub results: Vec<BenchmarkResult>,
pub system_info: SystemInfo,
}Expand description
Collection of benchmark results with comparison capabilities
Fields§
§title: String§timestamp: String§results: Vec<BenchmarkResult>§system_info: SystemInfoImplementations§
Source§impl BenchmarkReport
impl BenchmarkReport
Sourcepub fn add(&mut self, result: BenchmarkResult)
pub fn add(&mut self, result: BenchmarkResult)
Add a benchmark result
Sourcepub fn by_category(&self) -> HashMap<&str, Vec<&BenchmarkResult>>
pub fn by_category(&self) -> HashMap<&str, Vec<&BenchmarkResult>>
Get results by category
Sourcepub fn compare(&self, baseline: &BenchmarkReport) -> Vec<BenchmarkComparison>
pub fn compare(&self, baseline: &BenchmarkReport) -> Vec<BenchmarkComparison>
Compare against a baseline report, returns regressions
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 · 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<'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
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