pub struct BenchmarkSuite { /* private fields */ }Expand description
In-memory benchmark result catalog.
Implementations§
Source§impl BenchmarkSuite
impl BenchmarkSuite
pub fn new() -> Self
pub fn record_result(&mut self, result: BenchmarkResult)
pub fn get_result(&self, benchmark_id: &str) -> Option<&BenchmarkResult>
pub fn get_results(&self) -> &[BenchmarkResult]
Sourcepub fn results_with_mean_above(
&self,
threshold_micros: f64,
) -> Vec<&BenchmarkResult>
pub fn results_with_mean_above( &self, threshold_micros: f64, ) -> Vec<&BenchmarkResult>
Selects records whose calculated mean exceeds the caller’s threshold.
pub fn result_count(&self) -> usize
Trait Implementations§
Source§impl Clone for BenchmarkSuite
impl Clone for BenchmarkSuite
Source§fn clone(&self) -> BenchmarkSuite
fn clone(&self) -> BenchmarkSuite
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BenchmarkSuite
impl Debug for BenchmarkSuite
Source§impl Default for BenchmarkSuite
impl Default for BenchmarkSuite
Source§fn default() -> BenchmarkSuite
fn default() -> BenchmarkSuite
Returns the “default value” for a type. Read more
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§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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