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]

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]

Formats the value using the given formatter. Read more

impl Clone for PlotConfiguration
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for PlotConfiguration
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations