pub struct BenchmarkPlan { /* private fields */ }Expand description
Bounded benchmark execution plan.
Implementations§
Source§impl BenchmarkPlan
impl BenchmarkPlan
Sourcepub const fn new(measured_runs: NonZeroUsize) -> Self
pub const fn new(measured_runs: NonZeroUsize) -> Self
Creates a sequential plan with no warmup.
Sourcepub const fn with_warmup(self, warmup_runs: usize) -> Self
pub const fn with_warmup(self, warmup_runs: usize) -> Self
Adds unmeasured warmup invocations.
Sourcepub const fn with_concurrency(self, concurrency: NonZeroUsize) -> Self
pub const fn with_concurrency(self, concurrency: NonZeroUsize) -> Self
Bounds concurrently executing measured invocations.
Trait Implementations§
Source§impl Clone for BenchmarkPlan
impl Clone for BenchmarkPlan
Source§fn clone(&self) -> BenchmarkPlan
fn clone(&self) -> BenchmarkPlan
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 BenchmarkPlan
impl Debug for BenchmarkPlan
impl Eq for BenchmarkPlan
Source§impl PartialEq for BenchmarkPlan
impl PartialEq for BenchmarkPlan
impl StructuralPartialEq for BenchmarkPlan
Auto Trait Implementations§
impl Freeze for BenchmarkPlan
impl RefUnwindSafe for BenchmarkPlan
impl Send for BenchmarkPlan
impl Sync for BenchmarkPlan
impl Unpin for BenchmarkPlan
impl UnsafeUnpin for BenchmarkPlan
impl UnwindSafe for BenchmarkPlan
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