pub struct BenchmarkReport {
pub title: String,
pub timestamp: String,
pub results: Vec<BenchmarkSuiteResults>,
pub targets: BenchmarkTargets,
pub comparisons: Vec<ComparisonResult>,
}Expand description
A complete benchmark report
Fields§
§title: StringReport title
timestamp: StringGeneration timestamp
results: Vec<BenchmarkSuiteResults>Suite results
targets: BenchmarkTargetsTargets used
comparisons: Vec<ComparisonResult>Comparisons between tools
Implementations§
Source§impl BenchmarkReport
impl BenchmarkReport
Sourcepub fn new(
title: impl Into<String>,
results: Vec<BenchmarkSuiteResults>,
) -> Self
pub fn new( title: impl Into<String>, results: Vec<BenchmarkSuiteResults>, ) -> Self
Create a new report from suite results
Sourcepub fn with_targets(self, targets: BenchmarkTargets) -> Self
pub fn with_targets(self, targets: BenchmarkTargets) -> Self
Set custom targets
Sourcepub fn to_markdown(&self) -> String
pub fn to_markdown(&self) -> String
Generate markdown report
Sourcepub fn to_console(&self) -> String
pub fn to_console(&self) -> String
Generate console-friendly output
Sourcepub fn render(&self, format: ReportFormat) -> String
pub fn render(&self, format: ReportFormat) -> String
Render to specified format
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 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