pub struct DetailedBenchReport {Show 13 fields
pub name: String,
pub total_requests: u64,
pub total_duration: Duration,
pub avg_latency_us: f64,
pub p50_latency_us: f64,
pub p95_latency_us: f64,
pub p99_latency_us: f64,
pub p999_latency_us: f64,
pub max_latency_us: f64,
pub throughput_rps: f64,
pub errors: u64,
pub over_threshold: u64,
pub threshold_us: f64,
}Expand description
一次压测的完整统计;错误请求也计入延迟样本,并单独计数。
Fields§
§name: String§total_requests: u64§total_duration: Duration§avg_latency_us: f64§p50_latency_us: f64§p95_latency_us: f64§p99_latency_us: f64§p999_latency_us: f64§max_latency_us: f64§throughput_rps: f64§errors: u64§over_threshold: u64§threshold_us: f64Implementations§
Source§impl DetailedBenchReport
impl DetailedBenchReport
pub fn print(&self)
Sourcepub fn summary(&self) -> BenchResult
pub fn summary(&self) -> BenchResult
转成旧版摘要,便于复用已有打印/对比代码。
Trait Implementations§
Source§impl Clone for DetailedBenchReport
impl Clone for DetailedBenchReport
Auto Trait Implementations§
impl Freeze for DetailedBenchReport
impl RefUnwindSafe for DetailedBenchReport
impl Send for DetailedBenchReport
impl Sync for DetailedBenchReport
impl Unpin for DetailedBenchReport
impl UnsafeUnpin for DetailedBenchReport
impl UnwindSafe for DetailedBenchReport
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