Struct criterion::PlotConfiguration
source · pub struct PlotConfiguration { /* private fields */ }
Expand description
Contains the configuration options for the plots generated by a particular benchmark or benchmark group.
use self::criterion::{Bencher, Criterion, Benchmark, PlotConfiguration, AxisScale};
let plot_config = PlotConfiguration::default()
.summary_scale(AxisScale::Logarithmic);
Benchmark::new("test", |b| b.iter(|| 10))
.plot_config(plot_config);
Implementations
sourceimpl PlotConfiguration
impl PlotConfiguration
sourcepub fn summary_scale(self, new_scale: AxisScale) -> PlotConfiguration
pub fn summary_scale(self, new_scale: AxisScale) -> PlotConfiguration
Set the axis scale (linear or logarithmic) for the summary plots. Typically, you would set this to logarithmic if benchmarking over a range of inputs which scale exponentially. Defaults to linear.
Trait Implementations
sourceimpl Clone for PlotConfiguration
impl Clone for PlotConfiguration
sourcefn clone(&self) -> PlotConfiguration
fn clone(&self) -> PlotConfiguration
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for PlotConfiguration
impl Debug for PlotConfiguration
sourceimpl Default for PlotConfiguration
impl Default for PlotConfiguration
sourcefn default() -> PlotConfiguration
fn default() -> PlotConfiguration
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for PlotConfiguration
impl Send for PlotConfiguration
impl Sync for PlotConfiguration
impl Unpin for PlotConfiguration
impl UnwindSafe for PlotConfiguration
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more