pub struct LoadTestReport {
pub total: usize,
pub successes: usize,
pub failures: usize,
pub elapsed: Duration,
/* private fields */
}Expand description
Report from a completed load test.
Fields§
§total: usizeTotal requests executed.
successes: usizeSuccessful requests.
failures: usizeFailed requests.
elapsed: DurationTotal elapsed wall-clock time.
Implementations§
Source§impl LoadTestReport
impl LoadTestReport
Sourcepub fn success_rate(&self) -> f64
pub fn success_rate(&self) -> f64
Success rate as a fraction [0.0, 1.0].
Sourcepub fn error_rate(&self) -> f64
pub fn error_rate(&self) -> f64
Error rate as a fraction [0.0, 1.0].
Sourcepub fn percentile(&self, p: f64) -> Option<Duration>
pub fn percentile(&self, p: f64) -> Option<Duration>
Get latency percentile (e.g., 0.50 for p50, 0.99 for p99).
Sourcepub fn min_latency(&self) -> Option<Duration>
pub fn min_latency(&self) -> Option<Duration>
Minimum latency.
Sourcepub fn max_latency(&self) -> Option<Duration>
pub fn max_latency(&self) -> Option<Duration>
Maximum latency.
Sourcepub fn mean_latency(&self) -> Option<Duration>
pub fn mean_latency(&self) -> Option<Duration>
Mean latency.
Trait Implementations§
Source§impl Clone for LoadTestReport
impl Clone for LoadTestReport
Source§fn clone(&self) -> LoadTestReport
fn clone(&self) -> LoadTestReport
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 LoadTestReport
impl Debug for LoadTestReport
Auto Trait Implementations§
impl Freeze for LoadTestReport
impl RefUnwindSafe for LoadTestReport
impl Send for LoadTestReport
impl Sync for LoadTestReport
impl Unpin for LoadTestReport
impl UnwindSafe for LoadTestReport
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> 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: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).