pub struct PoolBenchmarkResult {
pub total_queries: usize,
pub successful_queries: usize,
pub failed_queries: usize,
pub total_duration: Duration,
pub average_query_time: Duration,
pub min_query_time: Duration,
pub max_query_time: Duration,
pub queries_per_second: f64,
}Expand description
Connection pool statistics Pool benchmark results
Fields§
§total_queries: usizeTotal number of queries attempted
successful_queries: usizeNumber of successful queries
failed_queries: usizeNumber of failed queries
total_duration: DurationTotal time for all queries
average_query_time: DurationAverage query execution time
min_query_time: DurationMinimum query execution time
max_query_time: DurationMaximum query execution time
queries_per_second: f64Queries executed per second
Implementations§
Source§impl PoolBenchmarkResult
impl PoolBenchmarkResult
Sourcepub fn success_rate(&self) -> f64
pub fn success_rate(&self) -> f64
Get success rate as a percentage
Sourcepub fn failure_rate(&self) -> f64
pub fn failure_rate(&self) -> f64
Get failure rate as a percentage
Sourcepub fn is_healthy(&self) -> bool
pub fn is_healthy(&self) -> bool
Check if benchmark indicates healthy pool performance
Trait Implementations§
Source§impl Clone for PoolBenchmarkResult
impl Clone for PoolBenchmarkResult
Source§fn clone(&self) -> PoolBenchmarkResult
fn clone(&self) -> PoolBenchmarkResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PoolBenchmarkResult
impl RefUnwindSafe for PoolBenchmarkResult
impl Send for PoolBenchmarkResult
impl Sync for PoolBenchmarkResult
impl Unpin for PoolBenchmarkResult
impl UnsafeUnpin for PoolBenchmarkResult
impl UnwindSafe for PoolBenchmarkResult
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
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