pub struct BenchmarkResult {
pub name: String,
pub category: String,
pub input_size: usize,
pub iterations: usize,
pub mean_ns: u64,
pub stddev_ns: u64,
pub min_ns: u64,
pub max_ns: u64,
pub throughput_mbps: Option<f64>,
}Expand description
A benchmark result entry
Fields§
§name: String§category: String§input_size: usize§iterations: usize§mean_ns: u64§stddev_ns: u64§min_ns: u64§max_ns: u64§throughput_mbps: Option<f64>Implementations§
Source§impl BenchmarkResult
impl BenchmarkResult
Sourcepub fn mean_duration(&self) -> Duration
pub fn mean_duration(&self) -> Duration
Mean duration
Sourcepub fn ops_per_sec(&self) -> f64
pub fn ops_per_sec(&self) -> f64
Operations per second
Trait Implementations§
Source§impl Clone for BenchmarkResult
impl Clone for BenchmarkResult
Source§fn clone(&self) -> BenchmarkResult
fn clone(&self) -> BenchmarkResult
Returns a duplicate 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 BenchmarkResult
impl Debug for BenchmarkResult
Source§impl<'de> Deserialize<'de> for BenchmarkResult
impl<'de> Deserialize<'de> for BenchmarkResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BenchmarkResult
impl RefUnwindSafe for BenchmarkResult
impl Send for BenchmarkResult
impl Sync for BenchmarkResult
impl Unpin for BenchmarkResult
impl UnsafeUnpin for BenchmarkResult
impl UnwindSafe for BenchmarkResult
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