pub struct Config {
pub threads: usize,
pub steps_per_thread: usize,
pub working_set: usize,
pub mstress_blocks: usize,
}Expand description
Configuration for a single benchmark run.
All fields have sensible defaults via Default.
Fields§
§threads: usizeNumber of worker threads to spawn. Defaults to
std::thread::available_parallelism() (or 4 if unavailable).
steps_per_thread: usizeNumber of alloc+free steps (ops) each thread performs. Larger values give more stable measurements; smaller values run faster. Default: 200 000.
working_set: usizeLarson only. Number of live blocks each thread keeps in its working set. Default: 512.
mstress_blocks: usizeMstress only. Number of blocks per mstress round. Default: 256.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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