pub struct BenchmarkResult {
pub operation: String,
pub total_ops: u64,
pub total_time: Duration,
pub ops_per_sec: f64,
pub avg_latency_ms: f64,
pub p95_latency_ms: f64,
pub p99_latency_ms: f64,
pub p995_latency_ms: f64,
}Expand description
Benchmark results
Fields§
§operation: StringOperation name
total_ops: u64Total operations performed
total_time: DurationTotal time taken
ops_per_sec: f64Operations per second
avg_latency_ms: f64Average latency (p50)
p95_latency_ms: f6495th percentile latency
p99_latency_ms: f6499th percentile latency
p995_latency_ms: f6499.5th percentile latency (tail)
Trait Implementations§
Source§impl Clone for BenchmarkResult
impl Clone for BenchmarkResult
Source§fn clone(&self) -> BenchmarkResult
fn clone(&self) -> BenchmarkResult
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 moreAuto Trait Implementations§
impl Freeze for BenchmarkResult
impl RefUnwindSafe for BenchmarkResult
impl Send for BenchmarkResult
impl Sync for BenchmarkResult
impl Unpin for BenchmarkResult
impl UnwindSafe for BenchmarkResult
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