Skip to content
Snippets Groups Projects

fix build benchmark

Merged Hugo Trentesaux requested to merge hugo-issue-111 into master
4 files
+ 40
0
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -46,6 +46,16 @@ use sp_std::marker::PhantomData;
@@ -46,6 +46,16 @@ use sp_std::marker::PhantomData;
/// Weight functions for `pallet_certification`.
/// Weight functions for `pallet_certification`.
pub struct WeightInfo<T>(PhantomData<T>);
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> pallet_certification::WeightInfo for WeightInfo<T> {
impl<T: frame_system::Config> pallet_certification::WeightInfo for WeightInfo<T> {
 
// Storage: Cert StorageIdtyCertMeta (r:2 w:2)
 
// Storage: Parameters ParametersStorage (r:1 w:0)
 
// Storage: Cert StorageCertsRemovableOn (r:1 w:1)
 
// Storage: Cert CertsByReceiver (r:1 w:1)
 
fn do_add_cert_checked() -> Weight {
 
// Minimum execution time: 48_363 nanoseconds.
 
Weight::from_ref_time(59_125_000 as u64)
 
.saturating_add(T::DbWeight::get().reads(5 as u64))
 
.saturating_add(T::DbWeight::get().writes(4 as u64))
 
}
// Storage: Identity Identities (r:2 w:0)
// Storage: Identity Identities (r:2 w:0)
// Storage: Cert StorageIdtyCertMeta (r:2 w:2)
// Storage: Cert StorageIdtyCertMeta (r:2 w:2)
// Storage: Parameters ParametersStorage (r:1 w:0)
// Storage: Parameters ParametersStorage (r:1 w:0)
Loading