pub struct StressResult {
pub name: String,
pub iterations: usize,
pub threads: usize,
pub total_elapsed: Duration,
pub thread_times: Vec<Duration>,
}Expand description
Result of a stress run.
Fields§
§name: StringStable name of the run.
iterations: usizeIterations actually executed.
threads: usizeThreads used.
total_elapsed: DurationWall-clock time from run start to all threads finishing.
thread_times: Vec<Duration>Per-thread elapsed times. Variance here indicates contention.
Implementations§
Source§impl StressResult
impl StressResult
Sourcepub fn ops_per_sec(&self) -> f64
pub fn ops_per_sec(&self) -> f64
Effective throughput in operations per second.
Sourcepub fn thread_time_cv(&self) -> f64
pub fn thread_time_cv(&self) -> f64
Coefficient of variation across thread times. Higher numbers indicate worse contention or load imbalance.
Sourcepub fn into_check_result(self, baseline_ops_per_sec: Option<f64>) -> CheckResult
pub fn into_check_result(self, baseline_ops_per_sec: Option<f64>) -> CheckResult
Convert this result into a CheckResult. If a baseline
throughput is provided, regression-style verdict is computed.
Trait Implementations§
Source§impl Clone for StressResult
impl Clone for StressResult
Source§fn clone(&self) -> StressResult
fn clone(&self) -> StressResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for StressResult
impl RefUnwindSafe for StressResult
impl Send for StressResult
impl Sync for StressResult
impl Unpin for StressResult
impl UnsafeUnpin for StressResult
impl UnwindSafe for StressResult
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