Skip to content

Commit

Permalink
Release Centrifuge 1019 & Altair 1027 (#1369)
Browse files Browse the repository at this point in the history
* chore: bump toml + runtime versions

* chore: update benchmarks
  • Loading branch information
wischli committed May 30, 2023
1 parent b2669f7 commit eb6d366
Show file tree
Hide file tree
Showing 74 changed files with 2,648 additions and 3,094 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "centrifuge-chain"
version = "0.10.26"
version = "0.10.27"
authors = ["Centrifuge <admin@centrifuge.io>"]
description = "Centrifuge chain implementation in Rust."
build = "build.rs"
Expand Down
2 changes: 1 addition & 1 deletion pallets/block-rewards/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ use num_traits::sign::Unsigned;
pub use pallet::*;
use sp_runtime::{traits::Zero, FixedPointOperand, SaturatedConversion, Saturating};
use sp_std::{mem, vec::Vec};
use weights::WeightInfo;
pub use weights::WeightInfo;

#[derive(
Encode, Decode, DefaultNoBound, Clone, TypeInfo, MaxEncodedLen, PartialEq, RuntimeDebugNoBound,
Expand Down
2 changes: 1 addition & 1 deletion runtime/altair/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "altair-runtime"
version = "0.10.26"
version = "0.10.27"
authors = ["Centrifuge <admin@centrifuge.io>"]
edition = "2021"
build = "build.rs"
Expand Down
4 changes: 2 additions & 2 deletions runtime/altair/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,13 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("altair"),
impl_name: create_runtime_str!("altair"),
authoring_version: 1,
spec_version: 1026,
spec_version: 1027,
impl_version: 1,
#[cfg(not(feature = "disable-runtime-api"))]
apis: RUNTIME_API_VERSIONS,
#[cfg(feature = "disable-runtime-api")]
apis: version::create_apis_vec![[]],
transaction_version: 1,
transaction_version: 2,
state_version: 0,
};

Expand Down
56 changes: 28 additions & 28 deletions runtime/altair/src/weights/frame_system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//! Autogenerated weights for `frame_system`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-03-25, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-05-26, 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

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: 8_300 nanoseconds.
Weight::from_ref_time(11_674_648 as u64)
// Standard Error: 0
.saturating_add(Weight::from_ref_time(531 as u64).saturating_mul(b as u64))
// Minimum execution time: 9_700 nanoseconds.
Weight::from_ref_time(157_778_032)
// Standard Error: 6
.saturating_add(Weight::from_ref_time(492).saturating_mul(b.into()))
}
/// The range of component `b` is `[0, 3932160]`.
fn remark_with_event(b: u32, ) -> Weight {
// Minimum execution time: 25_200 nanoseconds.
Weight::from_ref_time(37_255_034 as u64)
// Standard Error: 1
.saturating_add(Weight::from_ref_time(1_879 as u64).saturating_mul(b as u64))
// Minimum execution time: 22_800 nanoseconds.
Weight::from_ref_time(228_602_672)
// Standard Error: 6
.saturating_add(Weight::from_ref_time(2_041).saturating_mul(b.into()))
}
// Storage: System Digest (r:1 w:1)
// Storage: unknown [0x3a686561707061676573] (r:0 w:1)
fn set_heap_pages() -> Weight {
// Minimum execution time: 16_800 nanoseconds.
Weight::from_ref_time(17_401_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
// Minimum execution time: 14_800 nanoseconds.
Weight::from_ref_time(15_200_000)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(2))
}
// Storage: Skipped Metadata (r:0 w:0)
/// The range of component `i` is `[0, 1000]`.
fn set_storage(i: u32, ) -> Weight {
// Minimum execution time: 7_700 nanoseconds.
Weight::from_ref_time(2_101_462 as u64)
// Standard Error: 1_717
.saturating_add(Weight::from_ref_time(1_132_906 as u64).saturating_mul(i as u64))
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(i as u64)))
// Minimum execution time: 6_700 nanoseconds.
Weight::from_ref_time(6_800_000)
// Standard Error: 2_889
.saturating_add(Weight::from_ref_time(1_087_067).saturating_mul(i.into()))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
}
// Storage: Skipped Metadata (r:0 w:0)
/// The range of component `i` is `[0, 1000]`.
fn kill_storage(i: u32, ) -> Weight {
// Minimum execution time: 7_400 nanoseconds.
Weight::from_ref_time(3_993_264 as u64)
// Standard Error: 1_689
.saturating_add(Weight::from_ref_time(883_945 as u64).saturating_mul(i as u64))
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(i as u64)))
// Minimum execution time: 6_800 nanoseconds.
Weight::from_ref_time(7_100_000)
// Standard Error: 1_058
.saturating_add(Weight::from_ref_time(758_575).saturating_mul(i.into()))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
}
// Storage: Skipped Metadata (r:0 w:0)
/// The range of component `p` is `[0, 1000]`.
fn kill_prefix(p: u32, ) -> Weight {
// Minimum execution time: 11_400 nanoseconds.
Weight::from_ref_time(1_846_148 as u64)
// Standard Error: 2_709
.saturating_add(Weight::from_ref_time(1_627_406 as u64).saturating_mul(p as u64))
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(p as u64)))
// Minimum execution time: 12_900 nanoseconds.
Weight::from_ref_time(13_101_000)
// Standard Error: 1_252
.saturating_add(Weight::from_ref_time(1_398_783).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into())))
}
}
34 changes: 17 additions & 17 deletions runtime/altair/src/weights/pallet_anchors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//! Autogenerated weights for `pallet_anchors`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-03-25, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-05-26, 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

Expand Down Expand Up @@ -34,10 +34,10 @@ 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: 60_701 nanoseconds.
Weight::from_ref_time(62_802_000 as u64)
.saturating_add(T::DbWeight::get().reads(3 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
// Minimum execution time: 55_001 nanoseconds.
Weight::from_ref_time(55_901_000)
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(1))
}
// Storage: Timestamp Now (r:1 w:0)
// Storage: Anchor AnchorEvictDates (r:1 w:1)
Expand All @@ -49,17 +49,17 @@ 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: 88_701 nanoseconds.
Weight::from_ref_time(97_402_000 as u64)
.saturating_add(T::DbWeight::get().reads(7 as u64))
.saturating_add(T::DbWeight::get().writes(5 as u64))
// Minimum execution time: 86_302 nanoseconds.
Weight::from_ref_time(87_502_000)
.saturating_add(T::DbWeight::get().reads(7))
.saturating_add(T::DbWeight::get().writes(5))
}
// Storage: Anchor PreCommits (r:100 w:100)
fn evict_pre_commits() -> Weight {
// Minimum execution time: 2_014_538 nanoseconds.
Weight::from_ref_time(2_045_039_000 as u64)
.saturating_add(T::DbWeight::get().reads(100 as u64))
.saturating_add(T::DbWeight::get().writes(100 as u64))
// Minimum execution time: 1_867_131 nanoseconds.
Weight::from_ref_time(1_888_832_000)
.saturating_add(T::DbWeight::get().reads(100))
.saturating_add(T::DbWeight::get().writes(100))
}
// Storage: Timestamp Now (r:1 w:0)
// Storage: Anchor LatestEvictedDate (r:1 w:1)
Expand Down Expand Up @@ -269,9 +269,9 @@ 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: 2_228_842 nanoseconds.
Weight::from_ref_time(2_267_943_000 as u64)
.saturating_add(T::DbWeight::get().reads(404 as u64))
.saturating_add(T::DbWeight::get().writes(402 as u64))
// Minimum execution time: 2_066_334 nanoseconds.
Weight::from_ref_time(2_079_434_000)
.saturating_add(T::DbWeight::get().reads(404))
.saturating_add(T::DbWeight::get().writes(402))
}
}
58 changes: 29 additions & 29 deletions runtime/altair/src/weights/pallet_balances.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//! Autogenerated weights for `pallet_balances`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-03-25, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-05-26, 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

Expand Down Expand Up @@ -32,51 +32,51 @@ 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: 88_101 nanoseconds.
Weight::from_ref_time(89_101_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
// Minimum execution time: 77_302 nanoseconds.
Weight::from_ref_time(78_801_000)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
// Storage: System Account (r:1 w:1)
fn transfer_keep_alive() -> Weight {
// Minimum execution time: 64_701 nanoseconds.
Weight::from_ref_time(65_401_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
// Minimum execution time: 56_901 nanoseconds.
Weight::from_ref_time(57_701_000)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
// Storage: System Account (r:1 w:1)
fn set_balance_creating() -> Weight {
// Minimum execution time: 47_101 nanoseconds.
Weight::from_ref_time(48_001_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
// Minimum execution time: 43_701 nanoseconds.
Weight::from_ref_time(44_501_000)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
// Storage: System Account (r:1 w:1)
fn set_balance_killing() -> Weight {
// Minimum execution time: 53_801 nanoseconds.
Weight::from_ref_time(54_401_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
// Minimum execution time: 48_301 nanoseconds.
Weight::from_ref_time(49_701_000)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
// Storage: System Account (r:2 w:2)
fn force_transfer() -> Weight {
// Minimum execution time: 86_801 nanoseconds.
Weight::from_ref_time(88_002_000 as u64)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
// Minimum execution time: 77_802 nanoseconds.
Weight::from_ref_time(78_701_000)
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
}
// Storage: System Account (r:1 w:1)
fn transfer_all() -> Weight {
// Minimum execution time: 75_801 nanoseconds.
Weight::from_ref_time(76_801_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
// Minimum execution time: 66_201 nanoseconds.
Weight::from_ref_time(67_101_000)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
// Storage: System Account (r:1 w:1)
fn force_unreserve() -> Weight {
// Minimum execution time: 40_701 nanoseconds.
Weight::from_ref_time(41_300_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
// Minimum execution time: 35_901 nanoseconds.
Weight::from_ref_time(37_501_000)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
}
43 changes: 22 additions & 21 deletions runtime/altair/src/weights/pallet_block_rewards.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@
//! Autogenerated weights for `pallet_block_rewards`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-03-10, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `Laptop.local`, CPU: `<UNKNOWN>`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("altair-local"), DB CACHE: 1024
//! DATE: 2023-05-26, 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:
// target/release/centrifuge-chain
// benchmark
// pallet
// --chain=altair_local
// --chain=altair-dev
// --steps=50
// --repeat=20
// --pallet=pallet_block_rewards
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --output=/tmp/runtime/development/src/weights/pallet_block_rewards.rs
// --output=/tmp/runtime/altair/src/weights/pallet_block_rewards.rs

#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
Expand All @@ -29,30 +29,31 @@ use sp_std::marker::PhantomData;

/// Weight functions for `pallet_block_rewards`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> pallet_block_rewards::weights::WeightInfo for WeightInfo<T> {
// Storage: BlockRewardsBase Currencies (r:1 w:0)
// Storage: BlockRewardsBase Groups (r:1 w:0)
// Storage: BlockRewardsBase StakeAccounts (r:1 w:1)
impl<T: frame_system::Config> pallet_block_rewards::WeightInfo for WeightInfo<T> {
// Storage: BlockRewardsBase Currency (r:1 w:0)
// Storage: BlockRewardsBase Group (r:1 w:0)
// Storage: BlockRewardsBase StakeAccount (r:1 w:1)
// Storage: System Account (r:2 w:2)
fn claim_reward() -> Weight {
// Minimum execution time: 46_000 nanoseconds.
Weight::from_ref_time(48_000_000 as u64)
.saturating_add(T::DbWeight::get().reads(5 as u64))
.saturating_add(T::DbWeight::get().writes(3 as u64))
// Minimum execution time: 84_001 nanoseconds.
Weight::from_ref_time(84_901_000)
.saturating_add(T::DbWeight::get().reads(5))
.saturating_add(T::DbWeight::get().writes(3))
}
// Storage: BlockRewards NextSessionChanges (r:1 w:1)
// Storage: BlockRewards ActiveSessionData (r:1 w:0)
fn set_collator_reward() -> Weight {
// Minimum execution time: 7_000 nanoseconds.
Weight::from_ref_time(7_000_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
// Minimum execution time: 18_200 nanoseconds.
Weight::from_ref_time(18_700_000)
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
// Storage: BlockRewards NextSessionChanges (r:1 w:1)
// Storage: BlockRewards ActiveSessionData (r:1 w:0)
fn set_total_reward() -> Weight {
// Minimum execution time: 9_000 nanoseconds.
Weight::from_ref_time(9_000_000 as u64)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
// Minimum execution time: 16_600 nanoseconds.
Weight::from_ref_time(17_200_000)
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
}

0 comments on commit eb6d366

Please sign in to comment.