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, PlotConfiguration, AxisScale};
let plot_config = PlotConfiguration::default()
.summary_scale(AxisScale::Logarithmic);
// Using Criterion::default() for simplicity; normally you'd use the macros.
let mut criterion = Criterion::default();
let mut benchmark_group = criterion.benchmark_group("Group name");
benchmark_group.plot_config(plot_config);
// Use benchmark group
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
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more