Struct criterion::PlotConfiguration [−][src]
pub struct PlotConfiguration { /* fields omitted */ }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);
Methods
impl PlotConfiguration[src]
impl PlotConfigurationpub fn summary_scale(self, new_scale: AxisScale) -> PlotConfiguration[src]
pub fn summary_scale(self, new_scale: AxisScale) -> PlotConfigurationSet 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
impl Debug for PlotConfiguration[src]
impl Debug for PlotConfigurationfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for PlotConfiguration[src]
impl Clone for PlotConfigurationfn clone(&self) -> PlotConfiguration[src]
fn clone(&self) -> PlotConfigurationReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Default for PlotConfiguration[src]
impl Default for PlotConfigurationfn default() -> PlotConfiguration[src]
fn default() -> PlotConfigurationReturns the "default value" for a type. Read more
Auto Trait Implementations
impl Send for PlotConfiguration
impl Send for PlotConfigurationimpl Sync for PlotConfiguration
impl Sync for PlotConfiguration