pub struct LoadTestStats {
pub total_requests: usize,
pub successful_responses: usize,
pub failures: usize,
pub bytes_transferred: u64,
pub duration: Duration,
pub avg_latency_ms: f64,
pub p50_latency_ms: f64,
pub p95_latency_ms: f64,
pub p99_latency_ms: f64,
pub requests_per_second: f64,
pub throughput_bps: f64,
}Expand description
Statistics from a load test
Fields§
§total_requests: usizeTotal number of requests sent
successful_responses: usizeTotal number of successful responses
failures: usizeTotal number of failures
bytes_transferred: u64Total bytes transferred
duration: DurationTest duration
avg_latency_ms: f64Average latency (milliseconds)
p50_latency_ms: f64p50 latency (milliseconds)
p95_latency_ms: f64p95 latency (milliseconds)
p99_latency_ms: f64p99 latency (milliseconds)
requests_per_second: f64Requests per second achieved
throughput_bps: f64Throughput in bytes per second
Trait Implementations§
Source§impl Clone for LoadTestStats
impl Clone for LoadTestStats
Source§fn clone(&self) -> LoadTestStats
fn clone(&self) -> LoadTestStats
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 LoadTestStats
impl Debug for LoadTestStats
Source§impl Default for LoadTestStats
impl Default for LoadTestStats
Auto Trait Implementations§
impl Freeze for LoadTestStats
impl RefUnwindSafe for LoadTestStats
impl Send for LoadTestStats
impl Sync for LoadTestStats
impl Unpin for LoadTestStats
impl UnwindSafe for LoadTestStats
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