pub struct Benchmark<'a> { /* private fields */ }
Implementations§
source§impl<'a> Benchmark<'a>
impl<'a> Benchmark<'a>
pub fn new(name: &'a str) -> Self
pub fn with_config(name: &'a str, config: BenchmarkConfig) -> Self
pub fn from_env(name: &'a str) -> Self
pub fn group(&mut self, name: &str) -> &mut BenchmarkGroup
pub fn benchmark<F: Fn(&mut BenchmarkRun)>( &mut self, name: &str, iterations: Option<usize>, func: F )
pub fn benchmark_with<F: Fn(&mut BenchmarkRun, &P), P: Debug>( &mut self, name: &str, params: impl IntoIterator<Item = impl Into<BenchmarkParameter<P>>>, func: F )
pub fn output(&self)
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Benchmark<'a>
impl<'a> Send for Benchmark<'a>
impl<'a> Sync for Benchmark<'a>
impl<'a> Unpin for Benchmark<'a>
impl<'a> UnwindSafe for Benchmark<'a>
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