#[non_exhaustive]pub enum ParseBenchesError {
Show 22 variants
DirectoryNotFound(PathBuf),
NoTxtFiles(PathBuf),
NoMetricsParsed(PathBuf),
DuplicateBenchmark {
name: String,
file: PathBuf,
},
InvalidNumber(String),
Pattern(Error),
Io(Error),
Json(Error),
TooFewSamples {
side: &'static str,
count: usize,
},
BenchmarkSetMismatch,
InvalidSample(String),
EmptyBenchmarkSet,
InvalidTolerance,
NoBenchExecutables,
NoExecutableRan,
CommitMismatch {
manifest: String,
pass: String,
},
UnrecordedExecutable(PathBuf),
ExecutableChanged(PathBuf),
MissingExecutableIdentity(&'static str),
ExecutableDrift(&'static str),
SharedExecutable(PathBuf),
Budget(BudgetError),
}Expand description
Errors encountered while parsing benchmark output.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
DirectoryNotFound(PathBuf)
Benchmark results directory does not exist.
NoTxtFiles(PathBuf)
No .txt output files were found in the results directory.
NoMetricsParsed(PathBuf)
Output files were found, but no benchmark metrics could be parsed.
DuplicateBenchmark
A duplicate benchmark identifier was found.
Fields
InvalidNumber(String)
Failed to parse a numeric value from benchmark output.
Pattern(Error)
The bencher line pattern did not compile.
Io(Error)
Underlying I/O error.
Json(Error)
Underlying JSON serialization error.
TooFewSamples
Fewer than three repeated summaries were supplied for one side.
BenchmarkSetMismatch
Reference and candidate summaries did not contain the same benchmarks.
InvalidSample(String)
A sample was non-finite or non-positive without every sample being zero.
EmptyBenchmarkSet
A supplied summary had no benchmark metrics.
InvalidTolerance
The configured tolerance was negative, NaN, or infinite.
NoBenchExecutables
Cargo’s JSON messages named no bench executable.
NoExecutableRan
A pass’s Cargo log named no executable that it ran.
CommitMismatch
An executable manifest was built from a different commit than the pass.
Fields
UnrecordedExecutable(PathBuf)
A pass ran an executable that its side’s manifest does not list.
ExecutableChanged(PathBuf)
A prebuilt executable’s bytes changed after the manifest recorded them.
MissingExecutableIdentity(&'static str)
A side’s summaries name no executable.
ExecutableDrift(&'static str)
A side’s passes ran different executables.
Reference and candidate ran the same executable file.
Budget(BudgetError)
A broker performance lane command failed.
Trait Implementations§
Source§impl Debug for ParseBenchesError
impl Debug for ParseBenchesError
Source§impl Display for ParseBenchesError
impl Display for ParseBenchesError
Source§impl Error for ParseBenchesError
impl Error for ParseBenchesError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()