pub struct BenchmarkResults {
pub summary: BenchmarkSummary,
pub target_rate: f64,
pub workers: usize,
pub duration: Duration,
pub csv_path: Option<PathBuf>,
}Expand description
Results from a super::request::Benchmark run.
Fields§
§summary: BenchmarkSummary§target_rate: f64Target total rate (req/s); 0 means unlimited.
workers: usize§duration: Duration§csv_path: Option<PathBuf>Implementations§
Source§impl BenchmarkResults
impl BenchmarkResults
pub fn print_summary(&self)
pub fn throughput(&self) -> f64
pub fn p50_latency_ms(&self) -> f64
pub fn p95_latency_ms(&self) -> f64
pub fn p99_latency_ms(&self) -> f64
pub fn errors(&self) -> u64
pub fn sent(&self) -> u64
pub fn received(&self) -> u64
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BenchmarkResults
impl RefUnwindSafe for BenchmarkResults
impl Send for BenchmarkResults
impl Sync for BenchmarkResults
impl Unpin for BenchmarkResults
impl UnsafeUnpin for BenchmarkResults
impl UnwindSafe for BenchmarkResults
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