pub struct ThroughputMetrics {
pub operation: String,
pub data_size_bytes: u64,
pub item_count: Option<u64>,
pub processing_time: Duration,
pub bytes_per_second: f64,
pub items_per_second: Option<f64>,
pub megabytes_per_second: f64,
pub gigabytes_per_second: f64,
}Expand description
Throughput metrics for a single benchmark result
Fields§
§operation: StringOperation being measured
data_size_bytes: u64Data size in bytes
item_count: Option<u64>Number of items processed (optional)
processing_time: DurationProcessing time
bytes_per_second: f64Bytes processed per second
items_per_second: Option<f64>Items processed per second (if available)
megabytes_per_second: f64Megabytes per second
gigabytes_per_second: f64Gigabytes per second
Implementations§
Source§impl ThroughputMetrics
impl ThroughputMetrics
Sourcepub fn throughput_description(&self) -> String
pub fn throughput_description(&self) -> String
Get human-readable throughput description
Sourcepub fn items_description(&self) -> Option<String>
pub fn items_description(&self) -> Option<String>
Get items per second description
Sourcepub fn to_markdown(&self) -> String
pub fn to_markdown(&self) -> String
Generate markdown report for this throughput measurement
Trait Implementations§
Source§impl Clone for ThroughputMetrics
impl Clone for ThroughputMetrics
Source§fn clone(&self) -> ThroughputMetrics
fn clone(&self) -> ThroughputMetrics
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 moreAuto Trait Implementations§
impl Freeze for ThroughputMetrics
impl RefUnwindSafe for ThroughputMetrics
impl Send for ThroughputMetrics
impl Sync for ThroughputMetrics
impl Unpin for ThroughputMetrics
impl UnwindSafe for ThroughputMetrics
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