pub struct BatchProcessorStats {
pub batches_processed: u64,
pub records_processed: u64,
pub cache_hits: u64,
pub cache_misses: u64,
pub prefetch_operations: u64,
pub total_processing_time_us: u64,
pub io_time_us: u64,
pub parsing_time_us: u64,
pub bytes_read: u64,
pub allocations_avoided: u64,
}
Expand description
Statistics about batch processing performance
Fields§
§batches_processed: u64
Total number of batches processed
records_processed: u64
Total number of records processed
cache_hits: u64
Number of cache hits
cache_misses: u64
Number of cache misses
prefetch_operations: u64
Number of prefetch operations performed
total_processing_time_us: u64
Total time spent on batch processing (in microseconds)
io_time_us: u64
Time spent on I/O operations (in microseconds)
parsing_time_us: u64
Time spent on parsing (in microseconds)
bytes_read: u64
Total bytes read from storage
allocations_avoided: u64
Number of memory allocations avoided through batching
Implementations§
Source§impl BatchProcessorStats
impl BatchProcessorStats
Sourcepub fn cache_hit_rate(&self) -> f64
pub fn cache_hit_rate(&self) -> f64
Calculate cache hit rate as percentage
Sourcepub fn avg_records_per_batch(&self) -> f64
pub fn avg_records_per_batch(&self) -> f64
Calculate average records per batch
Sourcepub fn processing_throughput(&self) -> f64
pub fn processing_throughput(&self) -> f64
Calculate processing throughput (records per second)
Sourcepub fn io_efficiency(&self) -> f64
pub fn io_efficiency(&self) -> f64
Calculate I/O efficiency (bytes per microsecond)
Trait Implementations§
Source§impl Clone for BatchProcessorStats
impl Clone for BatchProcessorStats
Source§fn clone(&self) -> BatchProcessorStats
fn clone(&self) -> BatchProcessorStats
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 BatchProcessorStats
impl Debug for BatchProcessorStats
Source§impl Default for BatchProcessorStats
impl Default for BatchProcessorStats
Source§fn default() -> BatchProcessorStats
fn default() -> BatchProcessorStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BatchProcessorStats
impl RefUnwindSafe for BatchProcessorStats
impl Send for BatchProcessorStats
impl Sync for BatchProcessorStats
impl Unpin for BatchProcessorStats
impl UnwindSafe for BatchProcessorStats
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more