Struct jortestkit::load::Stats
source · pub struct Stats {
requests: Vec<Response>,
duration: Duration,
}
Fields§
§requests: Vec<Response>
§duration: Duration
Implementations§
source§impl Stats
impl Stats
pub fn new(requests: Vec<Response>, duration: Duration) -> Self
pub fn calculate_mean(&self) -> f64
pub fn total_requests_made(&self) -> usize
pub fn calculate_tps(&self) -> f64
pub fn measure( &self, measurement_name: &str, target: u32 ) -> EfficiencyBenchmarkFinish
pub fn print_summary(&self, title: &str)
pub fn calculate_passrate(&self) -> f64
pub fn total_requests_passed(&self) -> usize
pub fn total_requests_failed(&self) -> usize
pub fn total_requests_pending(&self) -> usize
pub fn print_errors_if_any(&self)
fn print_errors(&self, errors: Vec<RequestFailure>)
pub fn errors(&self) -> Vec<RequestFailure>
pub fn tps_status(&self) -> String
Auto Trait Implementations§
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnwindSafe for Stats
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