pub struct ParallelStats {
pub num_workers: usize,
pub tests_per_worker: (usize, usize, f64),
pub total_cpu_time: Duration,
pub wall_time: Duration,
pub speedup: f64,
pub efficiency: f64,
}Expand description
Statistics about parallel execution.
Fields§
§num_workers: usizeNumber of workers used
tests_per_worker: (usize, usize, f64)Tests per worker (min, max, avg)
total_cpu_time: DurationTotal CPU time (sum of all workers)
wall_time: DurationWall time
speedup: f64Speedup factor (cpu_time / wall_time)
efficiency: f64Efficiency (speedup / num_workers)
Trait Implementations§
Source§impl Clone for ParallelStats
impl Clone for ParallelStats
Source§fn clone(&self) -> ParallelStats
fn clone(&self) -> ParallelStats
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 moreAuto Trait Implementations§
impl Freeze for ParallelStats
impl RefUnwindSafe for ParallelStats
impl Send for ParallelStats
impl Sync for ParallelStats
impl Unpin for ParallelStats
impl UnsafeUnpin for ParallelStats
impl UnwindSafe for ParallelStats
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