pub struct ExecutionHistoryBaseline {
pub entry_count: usize,
pub heap_size_bytes: usize,
pub serialized_size_bytes: usize,
pub tolerance: f64,
}Expand description
Performance baseline for execution history growth.
Fields§
§entry_count: usizeNumber of entries in benchmark
heap_size_bytes: usizeExpected heap size in bytes
serialized_size_bytes: usizeExpected serialized size in bytes
tolerance: f64Tolerance factor (1.2 = allow 20% deviation)
Implementations§
Source§impl ExecutionHistoryBaseline
impl ExecutionHistoryBaseline
Sourcepub const ENTRIES_1000: Self
pub const ENTRIES_1000: Self
Baseline for 1000 entries (default limit).
§Measurement Methodology
These values are derived from benchmark tests that:
- Create 1000 execution history entries with realistic content
- Measure heap size using
std::mem::size_of_valand content sizes - Serialize to JSON and measure compressed size
- Run multiple iterations to verify consistency
§Updating Baselines
If legitimate performance improvements reduce memory usage, update these values based on new benchmark measurements. Always maintain 20% tolerance to account for platform variance.
DO NOT increase these values to accommodate regressions. Investigate and fix the root cause instead.
Trait Implementations§
Source§impl Clone for ExecutionHistoryBaseline
impl Clone for ExecutionHistoryBaseline
Source§fn clone(&self) -> ExecutionHistoryBaseline
fn clone(&self) -> ExecutionHistoryBaseline
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 ExecutionHistoryBaseline
impl RefUnwindSafe for ExecutionHistoryBaseline
impl Send for ExecutionHistoryBaseline
impl Sync for ExecutionHistoryBaseline
impl Unpin for ExecutionHistoryBaseline
impl UnsafeUnpin for ExecutionHistoryBaseline
impl UnwindSafe for ExecutionHistoryBaseline
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> 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