pub enum Workload {
Larson,
Mstress,
}Expand description
Workload selector.
Variants§
Larson
Server-churn pattern: each thread keeps a live working set; each step frees a random slot and allocates a new random-size block. Periodically a block is handed off cross-thread. Models long-running server heaps.
Mstress
Batch-stress pattern: rounds of “fill N blocks → free half in random order → refill → free all”. A fraction freed cross-thread. Models request-scoped allocators and scripting-engine GCs.
Trait Implementations§
impl Copy for Workload
impl Eq for Workload
impl StructuralPartialEq for Workload
Auto Trait Implementations§
impl Freeze for Workload
impl RefUnwindSafe for Workload
impl Send for Workload
impl Sync for Workload
impl Unpin for Workload
impl UnsafeUnpin for Workload
impl UnwindSafe for Workload
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