pub struct CyclesStatistics {
pub mean_cycles: f64,
pub median_cycles: f64,
pub std_dev_cycles: f64,
pub min_cycles: u64,
pub max_cycles: u64,
pub cycles_per_ns: f64,
}Expand description
CPU cycles statistics (computed alongside time stats)
Fields§
§mean_cycles: f64Mean CPU cycles per iteration
median_cycles: f64Median CPU cycles per iteration
std_dev_cycles: f64Standard deviation of cycles
min_cycles: u64Minimum cycles observed
max_cycles: u64Maximum cycles observed
cycles_per_ns: f64Cycles per nanosecond (approximates CPU frequency in GHz)
Trait Implementations§
Source§impl Clone for CyclesStatistics
impl Clone for CyclesStatistics
Source§fn clone(&self) -> CyclesStatistics
fn clone(&self) -> CyclesStatistics
Returns a duplicate of the value. Read more
1.0.0 · 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 CyclesStatistics
impl Debug for CyclesStatistics
Source§impl Default for CyclesStatistics
impl Default for CyclesStatistics
Source§fn default() -> CyclesStatistics
fn default() -> CyclesStatistics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CyclesStatistics
impl RefUnwindSafe for CyclesStatistics
impl Send for CyclesStatistics
impl Sync for CyclesStatistics
impl Unpin for CyclesStatistics
impl UnwindSafe for CyclesStatistics
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more