pub struct BenchmarkConfig {
pub name: String,
pub ticks: u64,
pub snapshot_interval: u64,
pub metrics_interval: u64,
}Expand description
Configuration for a benchmark run.
Fields§
§name: String§ticks: u64§snapshot_interval: u64Take a snapshot every N ticks.
metrics_interval: u64Compute metrics every N ticks.
Implementations§
Source§impl BenchmarkConfig
impl BenchmarkConfig
pub fn new(name: &str, ticks: u64) -> Self
pub fn with_snapshot_interval(self, interval: u64) -> Self
pub fn with_metrics_interval(self, interval: u64) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BenchmarkConfig
impl RefUnwindSafe for BenchmarkConfig
impl Send for BenchmarkConfig
impl Sync for BenchmarkConfig
impl Unpin for BenchmarkConfig
impl UnwindSafe for BenchmarkConfig
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