pub struct ProfileEntry {
pub domain: String,
pub function_name: String,
pub iterations: u64,
pub total_ns: u128,
pub min_ns: u128,
pub max_ns: u128,
pub mean_ns: f64,
pub stddev_ns: f64,
pub median_ns: u128,
}Expand description
Profiling result for a single experiment.
Fields§
§domain: StringScientific domain being profiled.
function_name: StringName of the profiled function.
iterations: u64Number of iterations performed.
total_ns: u128Total time in nanoseconds.
min_ns: u128Minimum time in nanoseconds.
max_ns: u128Maximum time in nanoseconds.
mean_ns: f64Mean time in nanoseconds.
stddev_ns: f64Standard deviation in nanoseconds.
median_ns: u128Median time in nanoseconds.
Implementations§
Source§impl ProfileEntry
impl ProfileEntry
Sourcepub fn throughput_per_sec(&self) -> f64
pub fn throughput_per_sec(&self) -> f64
Throughput in calls per second, derived from the mean.
Sourcepub fn to_csv_row(&self) -> String
pub fn to_csv_row(&self) -> String
Serializes the entry as a CSV row.
Trait Implementations§
Source§impl Clone for ProfileEntry
impl Clone for ProfileEntry
Source§fn clone(&self) -> ProfileEntry
fn clone(&self) -> ProfileEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ProfileEntry
impl RefUnwindSafe for ProfileEntry
impl Send for ProfileEntry
impl Sync for ProfileEntry
impl Unpin for ProfileEntry
impl UnsafeUnpin for ProfileEntry
impl UnwindSafe for ProfileEntry
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