Skip to content

Commit

Permalink
Re-generate runtime weights (#1164)
Browse files Browse the repository at this point in the history
* add content permissions + rm free space

* add new weights
  • Loading branch information
mikiquantum authored Jan 12, 2023
1 parent c73c7d0 commit 1c1070f
Show file tree
Hide file tree
Showing 48 changed files with 1,319 additions and 1,323 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,6 @@ jobs:
echo "Listing 100 largest packages"
dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n | tail -n 100
df -h
echo "Removing large packages"
sudo apt-get remove -y '^dotnet-.*'
sudo apt-get remove -y '^llvm-.*'
sudo apt-get remove -y 'php.*'
sudo apt-get remove -y 'mysql.*'
sudo apt-get remove -y azure-cli google-cloud-sdk google-chrome-stable firefox powershell
sudo apt-get autoremove -y
sudo apt-get clean
df -h
echo "Removing large directories"
rm -rf /usr/share/dotnet/
df -h
- name: Set docker tag
run: |
if [ "${WORKFLOW_TAG}" != "" ]; then
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
branches: [main]
jobs:
docs:
permissions:
contents: write
runs-on: ubuntu-latest
env:
RUST_TOOLCHAIN: "nightly-2022-08-05"
Expand Down
44 changes: 22 additions & 22 deletions runtime/altair/src/weights/frame_system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
//! Autogenerated weights for `frame_system`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-01-10, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `mq.local`, CPU: `<UNKNOWN>`
//! DATE: 2023-01-12, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `runner`, CPU: `Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("altair-dev"), DB CACHE: 1024
// Executed Command:
Expand Down Expand Up @@ -32,51 +32,51 @@ pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> {
/// The range of component `b` is `[0, 3932160]`.
fn remark(b: u32, ) -> Weight {
// Minimum execution time: 4_000 nanoseconds.
Weight::from_ref_time(4_156_551 as u64)
// Minimum execution time: 8_001 nanoseconds.
Weight::from_ref_time(11_535_975 as u64)
// Standard Error: 0
.saturating_add(Weight::from_ref_time(209 as u64).saturating_mul(b as u64))
.saturating_add(Weight::from_ref_time(533 as u64).saturating_mul(b as u64))
}
/// The range of component `b` is `[0, 3932160]`.
fn remark_with_event(b: u32, ) -> Weight {
// Minimum execution time: 12_000 nanoseconds.
Weight::from_ref_time(12_000_000 as u64)
// Minimum execution time: 26_100 nanoseconds.
Weight::from_ref_time(12_616_396 as u64)
// Standard Error: 0
.saturating_add(Weight::from_ref_time(1_211 as u64).saturating_mul(b as u64))
.saturating_add(Weight::from_ref_time(1_890 as u64).saturating_mul(b as u64))
}
// Storage: System Digest (r:1 w:1)
// Storage: unknown [0x3a686561707061676573] (r:0 w:1)
fn set_heap_pages() -> Weight {
// Minimum execution time: 8_000 nanoseconds.
Weight::from_ref_time(8_000_000 as u64)
// Minimum execution time: 16_900 nanoseconds.
Weight::from_ref_time(17_300_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
// Storage: Skipped Metadata (r:0 w:0)
/// The range of component `i` is `[0, 1000]`.
fn set_storage(i: u32, ) -> Weight {
// Minimum execution time: 3_000 nanoseconds.
Weight::from_ref_time(4_000_000 as u64)
// Standard Error: 787
.saturating_add(Weight::from_ref_time(742_603 as u64).saturating_mul(i as u64))
// Minimum execution time: 8_100 nanoseconds.
Weight::from_ref_time(89_306 as u64)
// Standard Error: 1_702
.saturating_add(Weight::from_ref_time(1_148_953 as u64).saturating_mul(i as u64))
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(i as u64)))
}
// Storage: Skipped Metadata (r:0 w:0)
/// The range of component `i` is `[0, 1000]`.
fn kill_storage(i: u32, ) -> Weight {
// Minimum execution time: 3_000 nanoseconds.
Weight::from_ref_time(4_000_000 as u64)
// Standard Error: 818
.saturating_add(Weight::from_ref_time(549_650 as u64).saturating_mul(i as u64))
// Minimum execution time: 8_000 nanoseconds.
Weight::from_ref_time(3_259_984 as u64)
// Standard Error: 1_635
.saturating_add(Weight::from_ref_time(901_614 as u64).saturating_mul(i as u64))
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(i as u64)))
}
// Storage: Skipped Metadata (r:0 w:0)
/// The range of component `p` is `[0, 1000]`.
fn kill_prefix(p: u32, ) -> Weight {
// Minimum execution time: 5_000 nanoseconds.
Weight::from_ref_time(6_000_000 as u64)
// Standard Error: 1_062
.saturating_add(Weight::from_ref_time(1_109_469 as u64).saturating_mul(p as u64))
// Minimum execution time: 11_600 nanoseconds.
Weight::from_ref_time(11_700_000 as u64)
// Standard Error: 1_579
.saturating_add(Weight::from_ref_time(1_663_730 as u64).saturating_mul(p as u64))
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(p as u64)))
}
}
20 changes: 10 additions & 10 deletions runtime/altair/src/weights/pallet_anchors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
//! Autogenerated weights for `pallet_anchors`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-01-10, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `mq.local`, CPU: `<UNKNOWN>`
//! DATE: 2023-01-12, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `runner`, CPU: `Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("altair-dev"), DB CACHE: 1024
// Executed Command:
Expand Down Expand Up @@ -34,8 +34,8 @@ impl<T: frame_system::Config> pallet_anchors::WeightInfo for WeightInfo<T> {
// Storage: Anchor PreCommits (r:1 w:1)
// Storage: Fees FeeBalances (r:1 w:0)
fn pre_commit() -> Weight {
// Minimum execution time: 30_000 nanoseconds.
Weight::from_ref_time(31_000_000 as u64)
// Minimum execution time: 62_801 nanoseconds.
Weight::from_ref_time(63_801_000 as u64)
.saturating_add(T::DbWeight::get().reads(3 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
Expand All @@ -49,15 +49,15 @@ impl<T: frame_system::Config> pallet_anchors::WeightInfo for WeightInfo<T> {
// Storage: Anchor AnchorIndexes (r:0 w:1)
// Storage: unknown [0xdb4faa73ca6d2016e53c7156087c176b79b169c409b8a0063a07964f3187f9e9] (r:0 w:1)
fn commit() -> Weight {
// Minimum execution time: 47_000 nanoseconds.
Weight::from_ref_time(48_000_000 as u64)
// Minimum execution time: 95_601 nanoseconds.
Weight::from_ref_time(96_501_000 as u64)
.saturating_add(T::DbWeight::get().reads(7 as u64))
.saturating_add(T::DbWeight::get().writes(5 as u64))
}
// Storage: Anchor PreCommits (r:100 w:100)
fn evict_pre_commits() -> Weight {
// Minimum execution time: 1_238_000 nanoseconds.
Weight::from_ref_time(1_256_000_000 as u64)
// Minimum execution time: 2_018_428 nanoseconds.
Weight::from_ref_time(2_033_028_000 as u64)
.saturating_add(T::DbWeight::get().reads(100 as u64))
.saturating_add(T::DbWeight::get().writes(100 as u64))
}
Expand Down Expand Up @@ -269,8 +269,8 @@ impl<T: frame_system::Config> pallet_anchors::WeightInfo for WeightInfo<T> {
// Storage: unknown [0xee60c64e1e32117f948ee71d391f978e8ac98c2bd869322fc25164502e3f7a9b] (r:0 w:1)
// Storage: unknown [0xf7e4b8a5415405a940e730546df85583c8c23956d99a3be18e09eebf3639d312] (r:0 w:1)
fn evict_anchors() -> Weight {
// Minimum execution time: 1_360_000 nanoseconds.
Weight::from_ref_time(1_367_000_000 as u64)
// Minimum execution time: 2_229_631 nanoseconds.
Weight::from_ref_time(2_257_632_000 as u64)
.saturating_add(T::DbWeight::get().reads(404 as u64))
.saturating_add(T::DbWeight::get().writes(402 as u64))
}
Expand Down
32 changes: 16 additions & 16 deletions runtime/altair/src/weights/pallet_balances.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
//! Autogenerated weights for `pallet_balances`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-01-10, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `mq.local`, CPU: `<UNKNOWN>`
//! DATE: 2023-01-12, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `runner`, CPU: `Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("altair-dev"), DB CACHE: 1024
// Executed Command:
Expand Down Expand Up @@ -32,50 +32,50 @@ pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
// Storage: System Account (r:1 w:1)
fn transfer() -> Weight {
// Minimum execution time: 46_000 nanoseconds.
Weight::from_ref_time(47_000_000 as u64)
// Minimum execution time: 87_501 nanoseconds.
Weight::from_ref_time(88_701_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: System Account (r:1 w:1)
fn transfer_keep_alive() -> Weight {
// Minimum execution time: 33_000 nanoseconds.
Weight::from_ref_time(34_000_000 as u64)
// Minimum execution time: 64_201 nanoseconds.
Weight::from_ref_time(65_301_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: System Account (r:1 w:1)
fn set_balance_creating() -> Weight {
// Minimum execution time: 23_000 nanoseconds.
Weight::from_ref_time(24_000_000 as u64)
// Minimum execution time: 47_701 nanoseconds.
Weight::from_ref_time(48_700_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: System Account (r:1 w:1)
fn set_balance_killing() -> Weight {
// Minimum execution time: 26_000 nanoseconds.
Weight::from_ref_time(27_000_000 as u64)
// Minimum execution time: 53_100 nanoseconds.
Weight::from_ref_time(54_001_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: System Account (r:2 w:2)
fn force_transfer() -> Weight {
// Minimum execution time: 49_000 nanoseconds.
Weight::from_ref_time(50_000_000 as u64)
// Minimum execution time: 86_201 nanoseconds.
Weight::from_ref_time(87_202_000 as u64)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
// Storage: System Account (r:1 w:1)
fn transfer_all() -> Weight {
// Minimum execution time: 41_000 nanoseconds.
Weight::from_ref_time(43_000_000 as u64)
// Minimum execution time: 74_801 nanoseconds.
Weight::from_ref_time(76_201_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: System Account (r:1 w:1)
fn force_unreserve() -> Weight {
// Minimum execution time: 20_000 nanoseconds.
Weight::from_ref_time(21_000_000 as u64)
// Minimum execution time: 40_401 nanoseconds.
Weight::from_ref_time(41_400_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
Expand Down
12 changes: 6 additions & 6 deletions runtime/altair/src/weights/pallet_collator_allowlist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
//! Autogenerated weights for `pallet_collator_allowlist`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-01-10, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `mq.local`, CPU: `<UNKNOWN>`
//! DATE: 2023-01-12, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `runner`, CPU: `Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("altair-dev"), DB CACHE: 1024
// Executed Command:
Expand Down Expand Up @@ -33,15 +33,15 @@ impl<T: frame_system::Config> pallet_collator_allowlist::WeightInfo for WeightIn
// Storage: Session NextKeys (r:1 w:0)
// Storage: CollatorAllowlist Allowlist (r:1 w:1)
fn add() -> Weight {
// Minimum execution time: 20_000 nanoseconds.
Weight::from_ref_time(21_000_000 as u64)
// Minimum execution time: 41_501 nanoseconds.
Weight::from_ref_time(42_201_000 as u64)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: CollatorAllowlist Allowlist (r:1 w:1)
fn remove() -> Weight {
// Minimum execution time: 16_000 nanoseconds.
Weight::from_ref_time(17_000_000 as u64)
// Minimum execution time: 35_100 nanoseconds.
Weight::from_ref_time(35_601_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
Expand Down
Loading

0 comments on commit 1c1070f

Please sign in to comment.