mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-23 14:21:11 +00:00
benchmarks: Fix panic in case of a missing model (#7698)
Co-authored-by: Alexander Theißen <alex.theissen@me.com>
This commit is contained in:
@@ -18,9 +18,11 @@
|
||||
//! Tools for analyzing the benchmark results.
|
||||
|
||||
use std::collections::BTreeMap;
|
||||
use linregress::{FormulaRegressionBuilder, RegressionDataBuilder, RegressionModel};
|
||||
use linregress::{FormulaRegressionBuilder, RegressionDataBuilder};
|
||||
use crate::BenchmarkResults;
|
||||
|
||||
pub use linregress::RegressionModel;
|
||||
|
||||
pub struct Analysis {
|
||||
pub base: u128,
|
||||
pub slopes: Vec<u128>,
|
||||
|
||||
@@ -26,7 +26,7 @@ mod analysis;
|
||||
|
||||
pub use utils::*;
|
||||
#[cfg(feature = "std")]
|
||||
pub use analysis::{Analysis, BenchmarkSelector};
|
||||
pub use analysis::{Analysis, BenchmarkSelector, RegressionModel};
|
||||
#[doc(hidden)]
|
||||
pub use sp_io::storage::root as storage_root;
|
||||
pub use sp_runtime::traits::Zero;
|
||||
|
||||
Reference in New Issue
Block a user