pub struct StressTestRunner { /* private fields */ }Expand description
Stress test runner
Implementations§
Source§impl StressTestRunner
impl StressTestRunner
Sourcepub fn new(config: StressConfig) -> Self
pub fn new(config: StressConfig) -> Self
Create new stress test runner
Sourcepub fn generate_input(&mut self) -> (u64, Vec<f32>)
pub fn generate_input(&mut self) -> (u64, Vec<f32>)
Generate randomized input for a cycle
Sourcepub fn run_cycle<F>(&mut self, cycle: u32, test_fn: F) -> FrameProfile
pub fn run_cycle<F>(&mut self, cycle: u32, test_fn: F) -> FrameProfile
Run a single cycle with provided test function
Sourcepub fn run_all<F>(&mut self, test_fn: F) -> &StressReport
pub fn run_all<F>(&mut self, test_fn: F) -> &StressReport
Run all cycles
Sourcepub fn report(&self) -> &StressReport
pub fn report(&self) -> &StressReport
Get the current report
Sourcepub fn verify(&self) -> PerformanceResult
pub fn verify(&self) -> PerformanceResult
Verify performance and return result
Auto Trait Implementations§
impl Freeze for StressTestRunner
impl RefUnwindSafe for StressTestRunner
impl Send for StressTestRunner
impl Sync for StressTestRunner
impl Unpin for StressTestRunner
impl UnsafeUnpin for StressTestRunner
impl UnwindSafe for StressTestRunner
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