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.
Sourcepub fn throughput_bits(self, volume: u128) -> Throughput
pub fn throughput_bits(self, volume: u128) -> Throughput
Compute the throughput in bits for a given volume of data. The volume is the amount of bytes processed in a single iteration.
Sourcepub fn throughput_bytes(self, volume: u128) -> Throughput
pub fn throughput_bytes(self, volume: u128) -> Throughput
Compute the throughput in bytes 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
Source§type Output = BenchResult
type Output = BenchResult
The resulting type after applying the
+
operator.Source§impl Clone for BenchResult
impl Clone for BenchResult
Source§fn clone(&self) -> BenchResult
fn clone(&self) -> BenchResult
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BenchResult
impl Debug for BenchResult
Auto Trait Implementations§
impl Freeze for BenchResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)