pub struct Stats {
pub n: u32,
pub p50_ns: u64,
pub p95_ns: u64,
pub p99_ns: u64,
pub max_ns: u64,
pub ops_per_sec: u64,
}Expand description
Timing of one workload: nearest-rank percentiles of per-operation wall-clock time, in nanoseconds. The clock’s own resolution is coarser on some platforms; a figure near it means little.
Fields§
§n: u32Operations timed.
p50_ns: u64Median, nanoseconds.
p95_ns: u6495th percentile, nanoseconds.
p99_ns: u6499th percentile, nanoseconds.
max_ns: u64Slowest, nanoseconds.
ops_per_sec: u64Operations per second over the summed operation time (not wall-clock including setup).
Implementations§
Trait Implementations§
impl Copy for Stats
impl Eq for Stats
impl StructuralPartialEq for Stats
Auto Trait Implementations§
impl Freeze for Stats
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnsafeUnpin for Stats
impl UnwindSafe for Stats
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