pub struct Benchmark { /* private fields */ }Expand description
A configured benchmark ready to run
Implementations§
Source§impl Benchmark
impl Benchmark
Sourcepub fn builder() -> BenchmarkBuilder
pub fn builder() -> BenchmarkBuilder
Create a new benchmark builder
Sourcepub async fn run(self) -> Result<BenchmarkResults>
pub async fn run(self) -> Result<BenchmarkResults>
Run the benchmark and return results
Auto Trait Implementations§
impl Freeze for Benchmark
impl !RefUnwindSafe for Benchmark
impl Send for Benchmark
impl Sync for Benchmark
impl Unpin for Benchmark
impl !UnwindSafe for Benchmark
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