Struct tango_bench::MeasurementSettings
source · pub struct MeasurementSettings {
pub max_samples: usize,
pub max_duration: Duration,
pub outlier_detection_enabled: bool,
pub samples_per_haystack: usize,
pub samples_per_needle: usize,
pub max_iterations_per_sample: usize,
}Fields§
§max_samples: usize§max_duration: Duration§outlier_detection_enabled: bool§samples_per_haystack: usizeThe number of samples per one generated haystack
samples_per_needle: usizeThe number of samples per one generated needle.
Usually should be 1 unless you want to stress the same code path in a benchmark multiple times.
max_iterations_per_sample: usizeThe number of iterations in a sample for each of 2 tested functions
Trait Implementations§
source§impl Clone for MeasurementSettings
impl Clone for MeasurementSettings
source§fn clone(&self) -> MeasurementSettings
fn clone(&self) -> MeasurementSettings
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 MeasurementSettings
impl Debug for MeasurementSettings
source§impl Default for MeasurementSettings
impl Default for MeasurementSettings
impl Copy for MeasurementSettings
Auto Trait Implementations§
impl RefUnwindSafe for MeasurementSettings
impl Send for MeasurementSettings
impl Sync for MeasurementSettings
impl Unpin for MeasurementSettings
impl UnwindSafe for MeasurementSettings
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