pub struct StressTester {
pub config: StressTestConfig,
pub resource_monitor: ResourceMonitor,
pub scenarios: Vec<StressTestScenario>,
pub results: Vec<StressTestResult>,
}Expand description
Stress testing framework for complex machine learning pipelines
Fields§
§config: StressTestConfigTest configuration
resource_monitor: ResourceMonitorResource monitoring
scenarios: Vec<StressTestScenario>Test scenarios
results: Vec<StressTestResult>Results storage
Implementations§
Source§impl StressTester
impl StressTester
Sourcepub fn new(config: StressTestConfig) -> Self
pub fn new(config: StressTestConfig) -> Self
Create a new stress tester
Sourcepub fn add_scenario(&mut self, scenario: StressTestScenario)
pub fn add_scenario(&mut self, scenario: StressTestScenario)
Add a stress test scenario
Sourcepub fn run_all_tests<T: Estimator + Send + Sync>(
&mut self,
pipeline: &T,
) -> SklResult<()>
pub fn run_all_tests<T: Estimator + Send + Sync>( &mut self, pipeline: &T, ) -> SklResult<()>
Run all stress test scenarios
Sourcepub fn run_scenario<T: Estimator + Send + Sync>(
&self,
pipeline: &T,
scenario: &StressTestScenario,
) -> SklResult<StressTestResult>
pub fn run_scenario<T: Estimator + Send + Sync>( &self, pipeline: &T, scenario: &StressTestScenario, ) -> SklResult<StressTestResult>
Run a specific stress test scenario
Sourcepub fn generate_report(&self) -> StressTestReport
pub fn generate_report(&self) -> StressTestReport
Generate comprehensive stress test report
Auto Trait Implementations§
impl Freeze for StressTester
impl RefUnwindSafe for StressTester
impl Send for StressTester
impl Sync for StressTester
impl Unpin for StressTester
impl UnwindSafe for StressTester
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> 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