Struct benchmark_simple::BenchResult
source · pub struct BenchResult { /* private fields */ }
Expand description
A benchmark result.
Implementations§
source§impl BenchResult
impl BenchResult
sourcepub fn as_secs_f64(&self) -> f64
pub fn as_secs_f64(&self) -> f64
Returns the elapsed time in seconds (floating point).
sourcepub fn throughput(self, volume: u128) -> Throughput
pub fn throughput(self, volume: u128) -> Throughput
Compute the throughput for a given volume of data. The volume is the amount of bytes processed in a single iteration.
Trait Implementations§
source§impl Add for BenchResult
impl Add for BenchResult
§type Output = BenchResult
type Output = BenchResult
The resulting type after applying the
+
operator.source§impl Debug for BenchResult
impl Debug for BenchResult
Auto Trait Implementations§
impl RefUnwindSafe for BenchResult
impl !Send for BenchResult
impl !Sync for BenchResult
impl Unpin for BenchResult
impl UnwindSafe for BenchResult
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