pub struct RunOptions {
pub warmup: usize,
pub concurrency: NonZeroUsize,
pub assets: Assets,
}Expand description
Explicit benchmark work budget settings. Warm-up defaults to one extra call.
Fields§
§warmup: usizeFirst cases additionally invoked before timing, capped at the case count.
concurrency: NonZeroUsizeMaximum concurrently polled measured requests; defaults to four.
assets: AssetsAvailable on crate feature
images only.Request-local images for each independent benchmark case.
Trait Implementations§
Source§impl Clone for RunOptions
impl Clone for RunOptions
Source§impl Debug for RunOptions
impl Debug for RunOptions
Auto Trait Implementations§
impl Freeze for RunOptions
impl RefUnwindSafe for RunOptions
impl Send for RunOptions
impl Sync for RunOptions
impl Unpin for RunOptions
impl UnsafeUnpin for RunOptions
impl UnwindSafe for RunOptions
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