pub struct LoadTestResults {Show 18 fields
pub test_type: LoadTestType,
pub passed: bool,
pub duration: Duration,
pub peak_connections: usize,
pub average_latency: Duration,
pub p95_latency: Duration,
pub p99_latency: Duration,
pub total_queries: u64,
pub successful_queries: u64,
pub failed_queries: u64,
pub total_bytes_sent: u64,
pub total_bytes_received: u64,
pub peak_memory_usage: u64,
pub average_memory_usage: u64,
pub throughput_bps: u64,
pub query_rate_achieved: f64,
pub errors: Vec<String>,
pub performance_timeline: HashMap<String, Vec<(Duration, f64)>>,
}Expand description
Results from a load test
Fields§
§test_type: LoadTestTypeTest type
passed: boolWhether the test passed
duration: DurationTest duration
peak_connections: usizePeak number of connections achieved
average_latency: DurationAverage latency
p95_latency: DurationP95 latency
p99_latency: DurationP99 latency
total_queries: u64Total queries executed
successful_queries: u64Successful queries
failed_queries: u64Failed queries
total_bytes_sent: u64Total bytes sent
total_bytes_received: u64Total bytes received
peak_memory_usage: u64Peak memory usage (bytes)
average_memory_usage: u64Average memory usage (bytes)
throughput_bps: u64Throughput (bytes per second)
query_rate_achieved: f64Query rate achieved (queries per second)
errors: Vec<String>Error messages if test failed
performance_timeline: HashMap<String, Vec<(Duration, f64)>>Performance timeline (timestamp -> metric value)
Implementations§
Source§impl LoadTestResults
impl LoadTestResults
Sourcepub fn new(test_type: LoadTestType) -> Self
pub fn new(test_type: LoadTestType) -> Self
Create a new results instance
Sourcepub fn success_rate(&self) -> f64
pub fn success_rate(&self) -> f64
Calculate success rate
Sourcepub fn throughput_human(&self) -> String
pub fn throughput_human(&self) -> String
Get throughput in human-readable format
Trait Implementations§
Source§impl Clone for LoadTestResults
impl Clone for LoadTestResults
Source§fn clone(&self) -> LoadTestResults
fn clone(&self) -> LoadTestResults
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 LoadTestResults
impl Debug for LoadTestResults
Source§impl<'de> Deserialize<'de> for LoadTestResults
impl<'de> Deserialize<'de> for LoadTestResults
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LoadTestResults
impl RefUnwindSafe for LoadTestResults
impl Send for LoadTestResults
impl Sync for LoadTestResults
impl Unpin for LoadTestResults
impl UnwindSafe for LoadTestResults
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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