pub struct BenchmarkBuilder { /* private fields */ }Available on crate feature
full only.Expand description
Implementations§
Source§impl BenchmarkBuilder
impl BenchmarkBuilder
Sourcepub fn iterations(self, n: u32) -> Self
pub fn iterations(self, n: u32) -> Self
Sourcepub fn run(self) -> Result<RunnerReport, BenchError>
pub fn run(self) -> Result<RunnerReport, BenchError>
Runs the benchmark and returns the report
§Returns
Ok(BenchReport)- Report containing timing samplesErr(BenchError)- If the function is not found or execution fails
Trait Implementations§
Source§impl Clone for BenchmarkBuilder
impl Clone for BenchmarkBuilder
Source§fn clone(&self) -> BenchmarkBuilder
fn clone(&self) -> BenchmarkBuilder
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 moreAuto Trait Implementations§
impl Freeze for BenchmarkBuilder
impl RefUnwindSafe for BenchmarkBuilder
impl Send for BenchmarkBuilder
impl Sync for BenchmarkBuilder
impl Unpin for BenchmarkBuilder
impl UnsafeUnpin for BenchmarkBuilder
impl UnwindSafe for BenchmarkBuilder
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