pub struct BatchCostResult {
pub optimal_batch_size: u64,
pub optimal_cost_us: f64,
pub immediate_cost_us: f64,
pub single_batch_cost_us: f64,
pub improvement_ratio: f64,
pub comparison_points: Vec<BatchCostPoint>,
}Expand description
Result of batch cost model optimization.
Fields§
§optimal_batch_size: u64Optimal batch size.
optimal_cost_us: f64Total cost with optimal batching (µs).
immediate_cost_us: f64Cost with immediate flush (batch_size = 1, µs).
single_batch_cost_us: f64Cost with single batch (batch_size = n, µs).
improvement_ratio: f64Improvement ratio (immediate / optimal).
comparison_points: Vec<BatchCostPoint>Evidence: cost at selected batch sizes.
Implementations§
Trait Implementations§
Source§impl Clone for BatchCostResult
impl Clone for BatchCostResult
Source§fn clone(&self) -> BatchCostResult
fn clone(&self) -> BatchCostResult
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 BatchCostResult
impl Debug for BatchCostResult
Auto Trait Implementations§
impl Freeze for BatchCostResult
impl RefUnwindSafe for BatchCostResult
impl Send for BatchCostResult
impl Sync for BatchCostResult
impl Unpin for BatchCostResult
impl UnsafeUnpin for BatchCostResult
impl UnwindSafe for BatchCostResult
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