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 is_multi(&self) -> bool
pub fn is_multi(&self) -> bool
Whether this benchmark compares several programs rather than measuring one.
Sourcepub fn subjects(&self) -> Result<Vec<Subject>>
pub fn subjects(&self) -> Result<Vec<Subject>>
Every subject with the benchmark’s defaults applied.
A single-command benchmark is one subject named SELF_TOOL with
counters on, which is exactly what it measured before subjects existed.
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