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§
Source§impl 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§
Source§impl Clone for PlotConfiguration
impl Clone for PlotConfiguration
Source§fn clone(&self) -> PlotConfiguration
fn clone(&self) -> PlotConfiguration
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 PlotConfiguration
impl Debug for PlotConfiguration
Source§impl Default for PlotConfiguration
impl Default for PlotConfiguration
Source§fn default() -> PlotConfiguration
fn default() -> PlotConfiguration
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PlotConfiguration
impl RefUnwindSafe for PlotConfiguration
impl Send for PlotConfiguration
impl Sync for PlotConfiguration
impl Unpin for PlotConfiguration
impl UnwindSafe for PlotConfiguration
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)