pub struct BenchmarkSuite { /* private fields */ }Expand description
Suite that manages and runs multiple benchmarks
Implementations§
Source§impl BenchmarkSuite
impl BenchmarkSuite
Sourcepub fn run_all(&self, db_path: &str) -> Vec<BenchmarkResult>
pub fn run_all(&self, db_path: &str) -> Vec<BenchmarkResult>
Run all benchmarks and return results
Sourcepub fn report_json(results: &[BenchmarkResult]) -> String
pub fn report_json(results: &[BenchmarkResult]) -> String
Format results as JSON
Sourcepub fn report_markdown(results: &[BenchmarkResult]) -> String
pub fn report_markdown(results: &[BenchmarkResult]) -> String
Format results as Markdown table
Sourcepub fn report_csv(results: &[BenchmarkResult]) -> String
pub fn report_csv(results: &[BenchmarkResult]) -> String
Format results as CSV
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BenchmarkSuite
impl !RefUnwindSafe for BenchmarkSuite
impl Send for BenchmarkSuite
impl Sync for BenchmarkSuite
impl Unpin for BenchmarkSuite
impl UnsafeUnpin for BenchmarkSuite
impl !UnwindSafe for BenchmarkSuite
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.