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§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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte