pub struct PerformanceStats {
pub total_compressions: usize,
pub total_bytes_processed: usize,
pub total_bytes_compressed: usize,
pub cache_hits: usize,
pub cache_misses: usize,
}Expand description
Performance statistics
Fields§
§total_compressions: usizeTotal compressions performed
total_bytes_processed: usizeTotal bytes processed
total_bytes_compressed: usizeTotal bytes compressed output
cache_hits: usizeCache hits
cache_misses: usizeCache misses
Implementations§
Source§impl PerformanceStats
impl PerformanceStats
Sourcepub fn compression_ratio(&self) -> f64
pub fn compression_ratio(&self) -> f64
Calculate compression ratio
Sourcepub fn cache_hit_rate(&self) -> f64
pub fn cache_hit_rate(&self) -> f64
Calculate cache hit rate
Trait Implementations§
Source§impl Clone for PerformanceStats
impl Clone for PerformanceStats
Source§impl Debug for PerformanceStats
impl Debug for PerformanceStats
Auto Trait Implementations§
impl Forget for PerformanceStats
impl Freeze for PerformanceStats
impl RefUnwindSafe for PerformanceStats
impl Send for PerformanceStats
impl Sync for PerformanceStats
impl Unpin for PerformanceStats
impl UnsafeUnpin for PerformanceStats
impl UnwindSafe for PerformanceStats
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