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]
pub fn summary_scale(self, new_scale: AxisScale) -> PlotConfiguration
[src]
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
impl Debug for PlotConfiguration
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for PlotConfiguration
[src]
fn clone(&self) -> PlotConfiguration
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for PlotConfiguration
[src]
fn default() -> PlotConfiguration
[src]
Returns the "default value" for a type. Read more