Struct tango_bench::Benchmark
source · pub struct Benchmark<H, N, O> { /* private fields */ }Implementations§
source§impl<H, N, O> Benchmark<H, N, O>
impl<H, N, O> Benchmark<H, N, O>
pub fn add_reporter(&mut self, reporter: impl Reporter + 'static)
pub fn add_generator( &mut self, generator: impl Generator<Haystack = H, Needle = N> + 'static )
pub fn add_generators<T>(&mut self, generators: impl IntoIterator<Item = T>)where T: Generator<Haystack = H, Needle = N> + 'static,
pub fn add_pair( &mut self, baseline: impl BenchmarkFn<H, N, O> + 'static, candidate: impl BenchmarkFn<H, N, O> + 'static )
pub fn run_by_name( &mut self, reporter: &mut dyn Reporter, name_filter: &str, opts: &MeasurementSettings, samples_dump: Option<impl AsRef<Path>> )
pub fn run_calibration(&mut self)
pub fn list_functions(&self) -> impl Iterator<Item = &str>
Trait Implementations§
Auto Trait Implementations§
impl<H, N, O> !RefUnwindSafe for Benchmark<H, N, O>
impl<H, N, O> !Send for Benchmark<H, N, O>
impl<H, N, O> !Sync for Benchmark<H, N, O>
impl<H, N, O> Unpin for Benchmark<H, N, O>
impl<H, N, O> !UnwindSafe for Benchmark<H, N, O>
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