pub struct Outcome {
pub attempted: usize,
pub succeeded: usize,
pub failures: BTreeMap<Cause, usize>,
pub setup: Vec<Duration>,
pub elapsed: Duration,
}Expand description
What a run produced.
Fields§
§attempted: usizeHow many were attempted.
succeeded: usizeHow many succeeded.
failures: BTreeMap<Cause, usize>Failures, by cause. Never summed into a single number.
setup: Vec<Duration>How long each successful call took to set up.
elapsed: DurationHow long the whole run took.
Implementations§
Source§impl Outcome
impl Outcome
Sourcepub fn calls_per_second(&self) -> f64
pub fn calls_per_second(&self) -> f64
Calls completed per second over the run.
Sourcepub fn percentile(&self, fraction: f64) -> Option<Duration>
pub fn percentile(&self, fraction: f64) -> Option<Duration>
The setup latency at this percentile, from 0.0 to 1.0.
Nearest-rank, which is the definition that always names a measurement that actually happened rather than interpolating between two that did.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Outcome
impl RefUnwindSafe for Outcome
impl Send for Outcome
impl Sync for Outcome
impl Unpin for Outcome
impl UnsafeUnpin for Outcome
impl UnwindSafe for Outcome
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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