Struct criterion::PlotConfiguration [−][src]
pub struct PlotConfiguration { /* fields omitted */ }Expand description
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); // 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
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
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for PlotConfigurationimpl Send for PlotConfigurationimpl Sync for PlotConfigurationimpl Unpin for PlotConfigurationimpl UnwindSafe for PlotConfigurationBlanket Implementations
Mutably borrows from an owned value. Read more