pub struct Bench {
pub runs: Option<u32>,
pub warmup: Option<u32>,
/* private fields */
}Fields§
§runs: Option<u32>§warmup: Option<u32>Implementations§
Source§impl Bench
impl Bench
Sourcepub fn argv(&self) -> Result<Vec<String>>
pub fn argv(&self) -> Result<Vec<String>>
The command as argv.
A string is split on whitespace and nothing else. There is deliberately no shell: spawning one adds its own startup cost and variance to every sample, which for commands in the 10ms range is a large fraction of the measurement. Anything needing a pipe or a glob should be a list whose first element is the interpreter.
pub fn runs(&self) -> u32
pub fn warmup(&self) -> u32
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Bench
impl<'de> Deserialize<'de> for Bench
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Bench
impl RefUnwindSafe for Bench
impl Send for Bench
impl Sync for Bench
impl Unpin for Bench
impl UnsafeUnpin for Bench
impl UnwindSafe for Bench
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