pub enum BenchCases<'routine> {
OneAtATime(Vec<(&'static str, BenchRoutine<'routine>)>),
Together(Vec<(&'static str, BenchSentRoutine)>),
}Expand description
The cases of one group, and what measuring them at once would cost.
Variants§
OneAtATime(Vec<(&'static str, BenchRoutine<'routine>)>)
Measured one at a time, which is what a CPU-bound round needs: rounds running beside each other contend for cores, and what is measured is the contention.
Together(Vec<(&'static str, BenchSentRoutine)>)
Measured at the same time, which an IO-bound round allows: time spent blocked costs the same blocked beside another round, so the group takes what its longest case takes.
Implementations§
Source§impl BenchCases<'_>
impl BenchCases<'_>
Auto Trait Implementations§
impl<'routine> !RefUnwindSafe for BenchCases<'routine>
impl<'routine> !Send for BenchCases<'routine>
impl<'routine> !Sync for BenchCases<'routine>
impl<'routine> !UnwindSafe for BenchCases<'routine>
impl<'routine> Freeze for BenchCases<'routine>
impl<'routine> Unpin for BenchCases<'routine>
impl<'routine> UnsafeUnpin for BenchCases<'routine>
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