Skip to content

Commit

Permalink
add component src
Browse files Browse the repository at this point in the history
Update weights
  • Loading branch information
enddynayn committed Jul 22, 2024
1 parent 21678f4 commit cb49362
Show file tree
Hide file tree
Showing 27 changed files with 906 additions and 834 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/benchmarks-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ jobs:
run: |
curl https://sh.rustup.rs -sSf | HOME=`pwd` bash -s -- -y
echo "PATH=`pwd`/.cargo/bin:$PATH" >> $GITHUB_ENV
- name: Install Components
run: rustup component add rust-src
- name: Update Weights
run: |
rustup show
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ jobs:
run: |
curl https://sh.rustup.rs -sSf | HOME=`pwd` bash -s -- -y
echo "PATH=`pwd`/.cargo/bin:$PATH" >> $GITHUB_ENV
- name: Install Components
run: rustup component add rust-src
- name: Update Weights for All Pallets
if: steps.is-full-release.outputs.is-full-release == 'true'
run: |
Expand Down Expand Up @@ -348,6 +350,7 @@ jobs:
uses: actions/configure-pages@v5
- name: Build Docs
run: |
rustup component add rust-src
rustup target add wasm32-unknown-unknown --toolchain nightly-2024-03-01
RUSTDOCFLAGS="--enable-index-page -Zunstable-options" cargo +nightly-2024-03-01 doc --no-deps --workspace --features frequency
- name: Fix file permissions
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/verify-pr-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ jobs:
run: |
export BUILT_BIN_FILENAME=frequency; echo "BUILT_BIN_FILENAME=$BUILT_BIN_FILENAME" >> $GITHUB_ENV
echo "FINAL_BIN_FILENAME=$BUILT_BIN_FILENAME.${{matrix.network}}.${{matrix.spec}}.${{matrix.branch_alias}}" >> $GITHUB_ENV
- name: Install Components
run: rustup component add rust-src
# # XXX Keep this step as it lets us skip full binary builds during development/testing
# - name: Cache Binary for Testing
# id: cache-binary
Expand Down Expand Up @@ -228,6 +230,7 @@ jobs:
uses: actions/checkout@v4
- name: Build Docs
run: |
rustup component add rust-src
rustup target add wasm32-unknown-unknown --toolchain nightly-2024-03-01
RUSTDOCFLAGS="--enable-index-page --check -Zunstable-options" cargo +nightly-2024-03-01 doc --no-deps --features frequency
Expand Down Expand Up @@ -332,6 +335,8 @@ jobs:
run: |
curl https://sh.rustup.rs -sSf | bash -s -- -y
echo "PATH=$HOME/.cargo/bin:$PATH" >> $GITHUB_ENV
- name: Install Components
run: rustup component add rust-src
- name: Extract Runtime Spec Version
run: |
echo "RUNTIME_SPEC_VERSION=$(awk '/spec_version:/ {match($0, /[0-9]+/); print substr($0, RSTART, RLENGTH); exit}' \
Expand Down
44 changes: 22 additions & 22 deletions pallets/capacity/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
//! Autogenerated weights for `pallet_capacity`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-07-11, STEPS: `20`, REPEAT: `10`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2024-07-22, STEPS: `20`, REPEAT: `10`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `ip-10-173-5-189`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
//! HOSTNAME: `ip-10-173-10-212`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("frequency-bench")`, DB CACHE: `1024`
// Executed Command:
Expand Down Expand Up @@ -61,8 +61,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `174`
// Estimated: `6249`
// Minimum execution time: 37_004_000 picoseconds.
Weight::from_parts(37_516_000, 6249)
// Minimum execution time: 39_381_000 picoseconds.
Weight::from_parts(40_678_000, 6249)
.saturating_add(T::DbWeight::get().reads(7_u64))
.saturating_add(T::DbWeight::get().writes(4_u64))
}
Expand All @@ -78,8 +78,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `285`
// Estimated: `6249`
// Minimum execution time: 25_485_000 picoseconds.
Weight::from_parts(26_449_000, 6249)
// Minimum execution time: 27_182_000 picoseconds.
Weight::from_parts(27_758_000, 6249)
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
Expand All @@ -91,8 +91,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `2974`
// Minimum execution time: 2_327_000 picoseconds.
Weight::from_parts(2_446_000, 2974)
// Minimum execution time: 2_302_000 picoseconds.
Weight::from_parts(2_416_000, 2974)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
Expand All @@ -108,8 +108,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `271`
// Estimated: `5071`
// Minimum execution time: 24_044_000 picoseconds.
Weight::from_parts(25_140_000, 5071)
// Minimum execution time: 25_138_000 picoseconds.
Weight::from_parts(25_718_000, 5071)
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().writes(4_u64))
}
Expand All @@ -119,8 +119,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 4_537_000 picoseconds.
Weight::from_parts(4_889_000, 0)
// Minimum execution time: 4_067_000 picoseconds.
Weight::from_parts(4_482_000, 0)
.saturating_add(T::DbWeight::get().writes(1_u64))
}
}
Expand All @@ -145,8 +145,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `174`
// Estimated: `6249`
// Minimum execution time: 37_004_000 picoseconds.
Weight::from_parts(37_516_000, 6249)
// Minimum execution time: 39_381_000 picoseconds.
Weight::from_parts(40_678_000, 6249)
.saturating_add(RocksDbWeight::get().reads(7_u64))
.saturating_add(RocksDbWeight::get().writes(4_u64))
}
Expand All @@ -162,8 +162,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `285`
// Estimated: `6249`
// Minimum execution time: 25_485_000 picoseconds.
Weight::from_parts(26_449_000, 6249)
// Minimum execution time: 27_182_000 picoseconds.
Weight::from_parts(27_758_000, 6249)
.saturating_add(RocksDbWeight::get().reads(4_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
Expand All @@ -175,8 +175,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `2974`
// Minimum execution time: 2_327_000 picoseconds.
Weight::from_parts(2_446_000, 2974)
// Minimum execution time: 2_302_000 picoseconds.
Weight::from_parts(2_416_000, 2974)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
Expand All @@ -192,8 +192,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `271`
// Estimated: `5071`
// Minimum execution time: 24_044_000 picoseconds.
Weight::from_parts(25_140_000, 5071)
// Minimum execution time: 25_138_000 picoseconds.
Weight::from_parts(25_718_000, 5071)
.saturating_add(RocksDbWeight::get().reads(4_u64))
.saturating_add(RocksDbWeight::get().writes(4_u64))
}
Expand All @@ -203,8 +203,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 4_537_000 picoseconds.
Weight::from_parts(4_889_000, 0)
// Minimum execution time: 4_067_000 picoseconds.
Weight::from_parts(4_482_000, 0)
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
}
Expand Down
28 changes: 14 additions & 14 deletions pallets/frequency-tx-payment/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
//! Autogenerated weights for `pallet_frequency_tx_payment`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-07-11, STEPS: `20`, REPEAT: `10`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2024-07-22, STEPS: `20`, REPEAT: `10`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `ip-10-173-5-189`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
//! HOSTNAME: `ip-10-173-10-212`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("frequency-bench")`, DB CACHE: `1024`
// Executed Command:
Expand Down Expand Up @@ -44,18 +44,18 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 3_236_000 picoseconds.
Weight::from_parts(3_421_000, 0)
// Minimum execution time: 3_330_000 picoseconds.
Weight::from_parts(3_511_000, 0)
}
/// The range of component `n` is `[0, 10]`.
fn pay_with_capacity_batch_all(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 5_256_000 picoseconds.
Weight::from_parts(6_282_904, 0)
// Standard Error: 13_079
.saturating_add(Weight::from_parts(3_083_520, 0).saturating_mul(n.into()))
// Minimum execution time: 5_168_000 picoseconds.
Weight::from_parts(6_149_649, 0)
// Standard Error: 10_051
.saturating_add(Weight::from_parts(3_092_193, 0).saturating_mul(n.into()))
}
}

Expand All @@ -65,18 +65,18 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 3_236_000 picoseconds.
Weight::from_parts(3_421_000, 0)
// Minimum execution time: 3_330_000 picoseconds.
Weight::from_parts(3_511_000, 0)
}
/// The range of component `n` is `[0, 10]`.
fn pay_with_capacity_batch_all(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 5_256_000 picoseconds.
Weight::from_parts(6_282_904, 0)
// Standard Error: 13_079
.saturating_add(Weight::from_parts(3_083_520, 0).saturating_mul(n.into()))
// Minimum execution time: 5_168_000 picoseconds.
Weight::from_parts(6_149_649, 0)
// Standard Error: 10_051
.saturating_add(Weight::from_parts(3_092_193, 0).saturating_mul(n.into()))
}
}

Expand Down
44 changes: 22 additions & 22 deletions pallets/handles/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
//! Autogenerated weights for `pallet_handles`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-07-11, STEPS: `20`, REPEAT: `10`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2024-07-22, STEPS: `20`, REPEAT: `10`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `ip-10-173-5-189`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
//! HOSTNAME: `ip-10-173-10-212`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("frequency-bench")`, DB CACHE: `1024`
// Executed Command:
Expand Down Expand Up @@ -54,10 +54,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `116`
// Estimated: `5009`
// Minimum execution time: 65_766_000 picoseconds.
Weight::from_parts(67_197_664, 5009)
// Standard Error: 7_700
.saturating_add(Weight::from_parts(93_257, 0).saturating_mul(b.into()))
// Minimum execution time: 64_491_000 picoseconds.
Weight::from_parts(66_067_584, 5009)
// Standard Error: 8_565
.saturating_add(Weight::from_parts(107_320, 0).saturating_mul(b.into()))
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
}
Expand All @@ -74,10 +74,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `222 + b * (1 ±0)`
// Estimated: `5009`
// Minimum execution time: 73_836_000 picoseconds.
Weight::from_parts(75_189_512, 5009)
// Standard Error: 8_314
.saturating_add(Weight::from_parts(177_972, 0).saturating_mul(b.into()))
// Minimum execution time: 72_719_000 picoseconds.
Weight::from_parts(73_627_821, 5009)
// Standard Error: 8_127
.saturating_add(Weight::from_parts(188_421, 0).saturating_mul(b.into()))
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(4_u64))
}
Expand All @@ -91,8 +91,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `231`
// Estimated: `5009`
// Minimum execution time: 20_598_000 picoseconds.
Weight::from_parts(21_064_000, 5009)
// Minimum execution time: 19_724_000 picoseconds.
Weight::from_parts(20_448_000, 5009)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
Expand All @@ -113,10 +113,10 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `116`
// Estimated: `5009`
// Minimum execution time: 65_766_000 picoseconds.
Weight::from_parts(67_197_664, 5009)
// Standard Error: 7_700
.saturating_add(Weight::from_parts(93_257, 0).saturating_mul(b.into()))
// Minimum execution time: 64_491_000 picoseconds.
Weight::from_parts(66_067_584, 5009)
// Standard Error: 8_565
.saturating_add(Weight::from_parts(107_320, 0).saturating_mul(b.into()))
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
}
Expand All @@ -133,10 +133,10 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `222 + b * (1 ±0)`
// Estimated: `5009`
// Minimum execution time: 73_836_000 picoseconds.
Weight::from_parts(75_189_512, 5009)
// Standard Error: 8_314
.saturating_add(Weight::from_parts(177_972, 0).saturating_mul(b.into()))
// Minimum execution time: 72_719_000 picoseconds.
Weight::from_parts(73_627_821, 5009)
// Standard Error: 8_127
.saturating_add(Weight::from_parts(188_421, 0).saturating_mul(b.into()))
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(4_u64))
}
Expand All @@ -150,8 +150,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `231`
// Estimated: `5009`
// Minimum execution time: 20_598_000 picoseconds.
Weight::from_parts(21_064_000, 5009)
// Minimum execution time: 19_724_000 picoseconds.
Weight::from_parts(20_448_000, 5009)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
Expand Down
28 changes: 14 additions & 14 deletions pallets/messages/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
//! Autogenerated weights for `pallet_messages`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-07-11, STEPS: `20`, REPEAT: `10`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2024-07-22, STEPS: `20`, REPEAT: `10`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `ip-10-173-5-189`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
//! HOSTNAME: `ip-10-173-10-212`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("frequency-bench")`, DB CACHE: `1024`
// Executed Command:
Expand Down Expand Up @@ -53,10 +53,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `329`
// Estimated: `5167`
// Minimum execution time: 28_094_000 picoseconds.
Weight::from_parts(29_431_642, 5167)
// Standard Error: 51
.saturating_add(Weight::from_parts(661, 0).saturating_mul(n.into()))
// Minimum execution time: 28_871_000 picoseconds.
Weight::from_parts(29_827_622, 5167)
// Standard Error: 33
.saturating_add(Weight::from_parts(722, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
Expand All @@ -70,8 +70,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `722`
// Estimated: `4998`
// Minimum execution time: 28_390_000 picoseconds.
Weight::from_parts(29_221_000, 4998)
// Minimum execution time: 28_844_000 picoseconds.
Weight::from_parts(29_905_000, 4998)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
Expand All @@ -92,10 +92,10 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `329`
// Estimated: `5167`
// Minimum execution time: 28_094_000 picoseconds.
Weight::from_parts(29_431_642, 5167)
// Standard Error: 51
.saturating_add(Weight::from_parts(661, 0).saturating_mul(n.into()))
// Minimum execution time: 28_871_000 picoseconds.
Weight::from_parts(29_827_622, 5167)
// Standard Error: 33
.saturating_add(Weight::from_parts(722, 0).saturating_mul(n.into()))
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
Expand All @@ -109,8 +109,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `722`
// Estimated: `4998`
// Minimum execution time: 28_390_000 picoseconds.
Weight::from_parts(29_221_000, 4998)
// Minimum execution time: 28_844_000 picoseconds.
Weight::from_parts(29_905_000, 4998)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
Expand Down
Loading

0 comments on commit cb49362

Please sign in to comment.