Skip to content

Commit 74bd0f4

Browse files
Run all benchmarks (#1835)
* Run all benchmarks * Update contracts gas limit for new weights. * cargo fmt --------- Co-authored-by: Robert G. Jakabosky <[email protected]>
1 parent 76ea6e0 commit 74bd0f4

36 files changed

+4136
-3446
lines changed

integration/src/sto.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ pub async fn get_fundraiser_id(
2929
if let Some(events) = res.events().await? {
3030
for rec in &events.0 {
3131
match &rec.event {
32-
RuntimeEvent::Sto(StoEvent::FundraiserCreated { offering_asset, fundraiser_id, .. }) => {
32+
RuntimeEvent::Sto(StoEvent::FundraiserCreated {
33+
offering_asset,
34+
fundraiser_id,
35+
..
36+
}) => {
3337
return Ok(Some((*offering_asset, fundraiser_id.clone())));
3438
}
3539
_ => (),

integration/tests/contract_permissions.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ async fn contract_as_secondary_key_change_identity() -> Result<()> {
4949
.polymesh_contracts()
5050
.instantiate_with_code_perms(
5151
0,
52-
Weight::from_parts(10_000_000_000, 0),
52+
Weight::from_parts(10_500_000_000, 0),
5353
None,
5454
call_runtime_bytes.to_vec(),
5555
vec![0x9b, 0xae, 0x9d, 0x5e], // Selector for `new` constructor.
@@ -134,7 +134,7 @@ async fn contract_as_secondary_key_change_identity() -> Result<()> {
134134
.call(
135135
contract.into(),
136136
0,
137-
Weight::from_parts(10_000_000_000, 0),
137+
Weight::from_parts(10_500_000_000, 0),
138138
None,
139139
encoded_call,
140140
)?

integration/tests/multisig_permissions.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ use anyhow::{anyhow, Result};
33
use polymesh_api::{
44
types::polymesh_primitives::{
55
authorization::AuthorizationData,
6+
identity_id::PortfolioName,
67
secondary_key::Signatory,
78
settlement::{VenueDetails, VenueType},
8-
identity_id::PortfolioName,
99
},
1010
TransactionResults, WrappedCall,
1111
};
@@ -612,7 +612,11 @@ async fn ms_needs_to_be_linked_to_an_identity() -> Result<()> {
612612
res.wait_in_block().await?;
613613

614614
// Prepare `create_portfolio` call.
615-
let call = tester.api.call().portfolio().create_portfolio(PortfolioName(Vec::new()))?;
615+
let call = tester
616+
.api
617+
.call()
618+
.portfolio()
619+
.create_portfolio(PortfolioName(Vec::new()))?;
616620
// Shouldn't be allowed, since the MS doesn't have a DID.
617621
let res = ms.run_proposal(call).await;
618622
assert!(res.is_err());

pallets/staking/src/weights.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,4 @@ pub trait WeightInfo {
6060
fn update_permissioned_validator_intended_count() -> Weight;
6161
fn chill_from_governance(n: u32) -> Weight;
6262
fn set_commission_cap(n: u32) -> Weight;
63-
fn validate_cdd_expiry_nominators(n: u32) -> Weight;
6463
}

pallets/weights/src/frame_system.rs

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
//! Autogenerated weights for frame_system
1919
//!
2020
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
21-
//! DATE: 2024-11-03, STEPS: `100`, REPEAT: 5, LOW RANGE: `[]`, HIGH RANGE: `[]`
21+
//! DATE: 2025-06-11, STEPS: `100`, REPEAT: 5, LOW RANGE: `[]`, HIGH RANGE: `[]`
2222
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 512
23-
//! HOSTNAME: `ubuntu-8gb-nbg1-1-bench2`, CPU: `AMD EPYC-Milan Processor`
23+
//! HOSTNAME: `ubuntu-8gb-nbg1-1-bench2`, CPU: `AMD EPYC Processor`
2424
2525
// Executed Command:
2626
// ./polymesh
@@ -43,7 +43,7 @@
4343
// --output
4444
// ./Polymesh/pallets/weights/src/
4545
// --template
46-
// ./Polymesh/.maintain/frame-weight-template.hbs
46+
// ./.maintain/frame-weight-template.hbs
4747

4848
#![allow(unused_parens)]
4949
#![allow(unused_imports)]
@@ -55,56 +55,56 @@ pub struct SubstrateWeight;
5555
impl frame_system::WeightInfo for SubstrateWeight {
5656
/// The range of component `b` is `[0, 7864320]`.
5757
fn remark(b: u32) -> Weight {
58-
// Minimum execution time: 2_322 nanoseconds.
59-
Weight::from_ref_time(13_323_989)
58+
// Minimum execution time: 2_213 nanoseconds.
59+
Weight::from_ref_time(12_794_737)
6060
// Standard Error: 0
61-
.saturating_add(Weight::from_ref_time(276).saturating_mul(b.into()))
61+
.saturating_add(Weight::from_ref_time(346).saturating_mul(b.into()))
6262
}
6363
/// The range of component `b` is `[0, 7864320]`.
6464
fn remark_with_event(b: u32) -> Weight {
65-
// Minimum execution time: 7_811 nanoseconds.
66-
Weight::from_ref_time(8_112_000)
65+
// Minimum execution time: 7_861 nanoseconds.
66+
Weight::from_ref_time(7_881_000)
6767
// Standard Error: 0
68-
.saturating_add(Weight::from_ref_time(1_191).saturating_mul(b.into()))
68+
.saturating_add(Weight::from_ref_time(1_288).saturating_mul(b.into()))
6969
}
7070
// Storage: System Digest (r:1 w:1)
7171
// Proof Skipped: System Digest (max_values: Some(1), max_size: None, mode: Measured)
7272
// Storage: unknown `0x3a686561707061676573` (r:0 w:1)
7373
// Proof Skipped: unknown `0x3a686561707061676573` (r:0 w:1)
7474
fn set_heap_pages() -> Weight {
75-
// Minimum execution time: 4_347 nanoseconds.
76-
Weight::from_ref_time(4_997_000)
75+
// Minimum execution time: 4_276 nanoseconds.
76+
Weight::from_ref_time(5_388_000)
7777
.saturating_add(DbWeight::get().reads(1))
7878
.saturating_add(DbWeight::get().writes(2))
7979
}
8080
// Storage: Skipped Metadata (r:0 w:0)
8181
// Proof Skipped: Skipped Metadata (max_values: None, max_size: None, mode: Measured)
8282
/// The range of component `i` is `[0, 1000]`.
8383
fn set_storage(i: u32) -> Weight {
84-
// Minimum execution time: 2_755 nanoseconds.
85-
Weight::from_ref_time(2_785_000)
86-
// Standard Error: 1_586
87-
.saturating_add(Weight::from_ref_time(975_700).saturating_mul(i.into()))
84+
// Minimum execution time: 2_403 nanoseconds.
85+
Weight::from_ref_time(2_494_000)
86+
// Standard Error: 1_536
87+
.saturating_add(Weight::from_ref_time(919_406).saturating_mul(i.into()))
8888
.saturating_add(DbWeight::get().writes((1_u64).saturating_mul(i.into())))
8989
}
9090
// Storage: Skipped Metadata (r:0 w:0)
9191
// Proof Skipped: Skipped Metadata (max_values: None, max_size: None, mode: Measured)
9292
/// The range of component `i` is `[0, 1000]`.
9393
fn kill_storage(i: u32) -> Weight {
94-
// Minimum execution time: 2_534 nanoseconds.
95-
Weight::from_ref_time(2_554_000)
96-
// Standard Error: 1_494
97-
.saturating_add(Weight::from_ref_time(679_556).saturating_mul(i.into()))
94+
// Minimum execution time: 2_384 nanoseconds.
95+
Weight::from_ref_time(2_644_000)
96+
// Standard Error: 1_357
97+
.saturating_add(Weight::from_ref_time(664_809).saturating_mul(i.into()))
9898
.saturating_add(DbWeight::get().writes((1_u64).saturating_mul(i.into())))
9999
}
100100
// Storage: Skipped Metadata (r:0 w:0)
101101
// Proof Skipped: Skipped Metadata (max_values: None, max_size: None, mode: Measured)
102102
/// The range of component `p` is `[0, 1000]`.
103103
fn kill_prefix(p: u32) -> Weight {
104-
// Minimum execution time: 4_768 nanoseconds.
105-
Weight::from_ref_time(4_957_000)
106-
// Standard Error: 2_359
107-
.saturating_add(Weight::from_ref_time(1_254_023).saturating_mul(p.into()))
104+
// Minimum execution time: 4_476 nanoseconds.
105+
Weight::from_ref_time(4_787_000)
106+
// Standard Error: 1_811
107+
.saturating_add(Weight::from_ref_time(1_200_907).saturating_mul(p.into()))
108108
.saturating_add(DbWeight::get().reads((1_u64).saturating_mul(p.into())))
109109
.saturating_add(DbWeight::get().writes((1_u64).saturating_mul(p.into())))
110110
}

0 commit comments

Comments
 (0)