Skip to content

Commit

Permalink
chore: temporary bench nft/rft/common
Browse files Browse the repository at this point in the history
  • Loading branch information
mrshiposha committed Sep 30, 2023
1 parent 2657b80 commit 0900b3d
Show file tree
Hide file tree
Showing 3 changed files with 320 additions and 307 deletions.
71 changes: 48 additions & 23 deletions pallets/common/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
//! Autogenerated weights for pallet_common
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-09-26, STEPS: `50`, REPEAT: `400`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-09-30, STEPS: `50`, REPEAT: `80`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `bench-host`, CPU: `Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz`
//! HOSTNAME: `hearthstone`, CPU: `AMD Ryzen 9 7950X3D 16-Core Processor`
//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
// Executed Command:
Expand All @@ -20,7 +20,7 @@
// *
// --template=.maintain/frame-weight-template.hbs
// --steps=50
// --repeat=400
// --repeat=80
// --heap-pages=4096
// --output=./pallets/common/src/weights.rs

Expand All @@ -36,6 +36,7 @@ pub trait WeightInfo {
fn set_collection_properties(b: u32, ) -> Weight;
fn delete_collection_properties(b: u32, ) -> Weight;
fn check_accesslist() -> Weight;
fn init_token_properties_common() -> Weight;
}

/// Weights for pallet_common using the Substrate node and recommended hardware.
Expand All @@ -48,10 +49,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `298`
// Estimated: `44457`
// Minimum execution time: 4_862_000 picoseconds.
Weight::from_parts(5_003_000, 44457)
// Standard Error: 3_889
.saturating_add(Weight::from_parts(4_918_195, 0).saturating_mul(b.into()))
// Minimum execution time: 2_831_000 picoseconds.
Weight::from_parts(8_612_860, 44457)
// Standard Error: 8_791
.saturating_add(Weight::from_parts(2_512_039, 0).saturating_mul(b.into()))
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
Expand All @@ -62,10 +63,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `303 + b * (33030 ±0)`
// Estimated: `44457`
// Minimum execution time: 4_739_000 picoseconds.
Weight::from_parts(4_887_000, 44457)
// Standard Error: 37_951
.saturating_add(Weight::from_parts(23_410_931, 0).saturating_mul(b.into()))
// Minimum execution time: 2_650_000 picoseconds.
Weight::from_parts(2_750_000, 44457)
// Standard Error: 28_392
.saturating_add(Weight::from_parts(8_897_514, 0).saturating_mul(b.into()))
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
Expand All @@ -75,10 +76,22 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `373`
// Estimated: `3535`
// Minimum execution time: 4_183_000 picoseconds.
Weight::from_parts(4_391_000, 3535)
// Minimum execution time: 2_730_000 picoseconds.
Weight::from_parts(2_850_000, 3535)
.saturating_add(T::DbWeight::get().reads(1_u64))
}
/// Storage: Common IsAdmin (r:1 w:0)
/// Proof: Common IsAdmin (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen)
/// Storage: Common CollectionPropertyPermissions (r:1 w:0)
/// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)
fn init_token_properties_common() -> Weight {
// Proof Size summary in bytes:
// Measured: `326`
// Estimated: `20191`
// Minimum execution time: 3_770_000 picoseconds.
Weight::from_parts(3_930_000, 20191)
.saturating_add(T::DbWeight::get().reads(2_u64))
}
}

// For backwards compatibility and tests
Expand All @@ -90,10 +103,10 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `298`
// Estimated: `44457`
// Minimum execution time: 4_862_000 picoseconds.
Weight::from_parts(5_003_000, 44457)
// Standard Error: 3_889
.saturating_add(Weight::from_parts(4_918_195, 0).saturating_mul(b.into()))
// Minimum execution time: 2_831_000 picoseconds.
Weight::from_parts(8_612_860, 44457)
// Standard Error: 8_791
.saturating_add(Weight::from_parts(2_512_039, 0).saturating_mul(b.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
Expand All @@ -104,10 +117,10 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `303 + b * (33030 ±0)`
// Estimated: `44457`
// Minimum execution time: 4_739_000 picoseconds.
Weight::from_parts(4_887_000, 44457)
// Standard Error: 37_951
.saturating_add(Weight::from_parts(23_410_931, 0).saturating_mul(b.into()))
// Minimum execution time: 2_650_000 picoseconds.
Weight::from_parts(2_750_000, 44457)
// Standard Error: 28_392
.saturating_add(Weight::from_parts(8_897_514, 0).saturating_mul(b.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
Expand All @@ -117,9 +130,21 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `373`
// Estimated: `3535`
// Minimum execution time: 4_183_000 picoseconds.
Weight::from_parts(4_391_000, 3535)
// Minimum execution time: 2_730_000 picoseconds.
Weight::from_parts(2_850_000, 3535)
.saturating_add(RocksDbWeight::get().reads(1_u64))
}
/// Storage: Common IsAdmin (r:1 w:0)
/// Proof: Common IsAdmin (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen)
/// Storage: Common CollectionPropertyPermissions (r:1 w:0)
/// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)
fn init_token_properties_common() -> Weight {
// Proof Size summary in bytes:
// Measured: `326`
// Estimated: `20191`
// Minimum execution time: 3_770_000 picoseconds.
Weight::from_parts(3_930_000, 20191)
.saturating_add(RocksDbWeight::get().reads(2_u64))
}
}

Loading

0 comments on commit 0900b3d

Please sign in to comment.