pub struct PerformanceConfig {
pub concurrent_users: usize,
pub test_duration_secs: u64,
pub requests_per_second: f64,
pub warmup_duration_secs: u64,
pub cooldown_duration_secs: u64,
pub enable_detailed_metrics: bool,
pub test_operations: Vec<TestOperation>,
}
Expand description
Performance test configuration
Fields§
§concurrent_users: usize
Number of concurrent users to simulate
test_duration_secs: u64
Duration of the test in seconds
requests_per_second: f64
Request rate per second per user
warmup_duration_secs: u64
Warmup duration in seconds
cooldown_duration_secs: u64
Cool down duration in seconds
enable_detailed_metrics: bool
Enable detailed metrics collection
test_operations: Vec<TestOperation>
Target operations to test
Trait Implementations§
Source§impl Clone for PerformanceConfig
impl Clone for PerformanceConfig
Source§fn clone(&self) -> PerformanceConfig
fn clone(&self) -> PerformanceConfig
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 moreSource§impl Debug for PerformanceConfig
impl Debug for PerformanceConfig
Auto Trait Implementations§
impl Freeze for PerformanceConfig
impl RefUnwindSafe for PerformanceConfig
impl Send for PerformanceConfig
impl Sync for PerformanceConfig
impl Unpin for PerformanceConfig
impl UnwindSafe for PerformanceConfig
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