Struct benchy::BenchmarkConfig
source · pub struct BenchmarkConfig {
pub quick: bool,
pub max_default_iterations_duration: Duration,
pub output_dir: Option<String>,
}
Fields§
§quick: bool
§max_default_iterations_duration: Duration
The maximum total duration for the default iterations of a single benchmark. If the cumulative time for all default iterations exceeds this limit, no further iterations will be started. This doesn’t apply to benchmarks with a specified number of iterations.
Default value is 10 seconds.
output_dir: Option<String>
Implementations§
Trait Implementations§
source§impl Clone for BenchmarkConfig
impl Clone for BenchmarkConfig
source§fn clone(&self) -> BenchmarkConfig
fn clone(&self) -> BenchmarkConfig
Returns a copy 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 BenchmarkConfig
impl Debug for BenchmarkConfig
Auto Trait Implementations§
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