Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'master' into kckyeung/sensical-weight-constants
  • Loading branch information
KiChjang authored Dec 8, 2022
commit eabfc6665f6a6dbd3fcee43ad56345ed432ae05d
14 changes: 6 additions & 8 deletions runtime/kusama/constants/src/weights/block_weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,8 @@
// --repeat=100
// --header=./file_header.txt

use frame_support::{
parameter_types,
weights::{constants::WEIGHT_REF_TIME_PER_NANOS, Weight},
};
use sp_core::parameter_types;
use sp_weights::{constants::WEIGHT_REF_TIME_PER_NANOS, Weight};

parameter_types! {
/// Time to execute an empty block.
Expand All @@ -50,11 +48,11 @@ parameter_types! {
/// Std-Dev: 49280.83
///
/// Percentiles nanoseconds:
/// 99th: 6_332_047
/// 95th: 6_308_225
/// 75th: 6_236_204
/// 99th: 6_876_251
/// 95th: 6_811_463
/// 75th: 6_751_221
pub const BlockExecutionWeight: Weight =
Weight::from_ref_time(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(6_192_341));
Weight::from_ref_time(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(6_731_894));
}

#[cfg(test)]
Expand Down
16 changes: 7 additions & 9 deletions runtime/kusama/constants/src/weights/extrinsic_weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,8 @@
// --repeat=100
// --header=./file_header.txt

use frame_support::{
parameter_types,
weights::{constants::WEIGHT_REF_TIME_PER_NANOS, Weight},
};
use sp_core::parameter_types;
use sp_weights::{constants::WEIGHT_REF_TIME_PER_NANOS, Weight};

parameter_types! {
/// Time to execute a NO-OP extrinsic, for example `System::remark`.
Expand All @@ -49,12 +47,12 @@ parameter_types! {
/// Median: 94_839
/// Std-Dev: 369.49
///
/// Percentiles [NS]:
/// 99th: 87_527
/// 95th: 86_901
/// 75th: 86_308
/// Percentiles nanoseconds:
/// 99th: 96_279
/// 95th: 95_584
/// 75th: 95_005
pub const ExtrinsicBaseWeight: Weight =
Weight::from_ref_time(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(86_309));
Weight::from_ref_time(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(94_889));
}

#[cfg(test)]
Expand Down
14 changes: 6 additions & 8 deletions runtime/polkadot/constants/src/weights/block_weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,8 @@
// --repeat=100
// --header=./file_header.txt

use frame_support::{
parameter_types,
weights::{constants::WEIGHT_REF_TIME_PER_NANOS, Weight},
};
use sp_core::parameter_types;
use sp_weights::{constants::WEIGHT_REF_TIME_PER_NANOS, Weight};

parameter_types! {
/// Time to execute an empty block.
Expand All @@ -50,11 +48,11 @@ parameter_types! {
/// Std-Dev: 50562.05
///
/// Percentiles nanoseconds:
/// 99th: 6_131_246
/// 95th: 5_988_921
/// 75th: 5_885_724
/// 99th: 6_239_600
/// 95th: 6_178_734
/// 75th: 6_145_812
pub const BlockExecutionWeight: Weight =
Weight::from_ref_time(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(5_849_907));
Weight::from_ref_time(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(6_103_588));
}

#[cfg(test)]
Expand Down
16 changes: 7 additions & 9 deletions runtime/polkadot/constants/src/weights/extrinsic_weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,8 @@
// --repeat=100
// --header=./file_header.txt

use frame_support::{
parameter_types,
weights::{constants::WEIGHT_REF_TIME_PER_NANOS, Weight},
};
use sp_core::parameter_types;
use sp_weights::{constants::WEIGHT_REF_TIME_PER_NANOS, Weight};

parameter_types! {
/// Time to execute a NO-OP extrinsic, for example `System::remark`.
Expand All @@ -49,12 +47,12 @@ parameter_types! {
/// Median: 95_465
/// Std-Dev: 347.27
///
/// Percentiles [NS]:
/// 99th: 86_269
/// 95th: 85_510
/// 75th: 85_216
/// Percentiles nanoseconds:
/// 99th: 96_351
/// 95th: 96_116
/// 75th: 95_639
pub const ExtrinsicBaseWeight: Weight =
Weight::from_ref_time(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(85_212));
Weight::from_ref_time(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(95_479));
}

#[cfg(test)]
Expand Down
14 changes: 6 additions & 8 deletions runtime/rococo/constants/src/weights/block_weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,8 @@
// --repeat=100
// --header=./file_header.txt

use frame_support::{
parameter_types,
weights::{constants::WEIGHT_REF_TIME_PER_NANOS, Weight},
};
use sp_core::parameter_types;
use sp_weights::{constants::WEIGHT_REF_TIME_PER_NANOS, Weight};

parameter_types! {
/// Time to execute an empty block.
Expand All @@ -50,11 +48,11 @@ parameter_types! {
/// Std-Dev: 54133.56
///
/// Percentiles nanoseconds:
/// 99th: 4_189_094
/// 95th: 4_152_261
/// 75th: 4_098_529
/// 99th: 5_495_378
/// 95th: 5_453_765
/// 75th: 5_352_587
pub const BlockExecutionWeight: Weight =
Weight::from_ref_time(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(4_084_738));
Weight::from_ref_time(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(5_334_883));
}

#[cfg(test)]
Expand Down
14 changes: 6 additions & 8 deletions runtime/rococo/constants/src/weights/extrinsic_weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,8 @@
// --repeat=100
// --header=./file_header.txt

use frame_support::{
parameter_types,
weights::{constants::WEIGHT_REF_TIME_PER_NANOS, Weight},
};
use sp_core::parameter_types;
use sp_weights::{constants::WEIGHT_REF_TIME_PER_NANOS, Weight};

parameter_types! {
/// Time to execute a NO-OP extrinsic, for example `System::remark`.
Expand All @@ -50,11 +48,11 @@ parameter_types! {
/// Std-Dev: 244.16
///
/// Percentiles nanoseconds:
/// 99th: 79_591
/// 95th: 78_730
/// 75th: 78_272
/// 99th: 87_916
/// 95th: 87_727
/// 75th: 87_112
pub const ExtrinsicBaseWeight: Weight =
Weight::from_ref_time(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(78_269));
Weight::from_ref_time(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(87_092));
}

#[cfg(test)]
Expand Down
14 changes: 6 additions & 8 deletions runtime/westend/constants/src/weights/block_weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,8 @@
// --repeat=100
// --header=./file_header.txt

use frame_support::{
parameter_types,
weights::{constants::WEIGHT_REF_TIME_PER_NANOS, Weight},
};
use sp_core::parameter_types;
use sp_weights::{constants::WEIGHT_REF_TIME_PER_NANOS, Weight};

parameter_types! {
/// Time to execute an empty block.
Expand All @@ -50,11 +48,11 @@ parameter_types! {
/// Std-Dev: 52022.65
///
/// Percentiles nanoseconds:
/// 99th: 5_084_427
/// 95th: 5_039_369
/// 75th: 4_991_020
/// 99th: 5_381_058
/// 95th: 5_313_959
/// 75th: 5_227_090
pub const BlockExecutionWeight: Weight =
Weight::from_ref_time(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(4_970_728));
Weight::from_ref_time(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(5_208_926));
}

#[cfg(test)]
Expand Down
14 changes: 6 additions & 8 deletions runtime/westend/constants/src/weights/extrinsic_weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,8 @@
// --repeat=100
// --header=./file_header.txt

use frame_support::{
parameter_types,
weights::{constants::WEIGHT_REF_TIME_PER_NANOS, Weight},
};
use sp_core::parameter_types;
use sp_weights::{constants::WEIGHT_REF_TIME_PER_NANOS, Weight};

parameter_types! {
/// Time to execute a NO-OP extrinsic, for example `System::remark`.
Expand All @@ -50,11 +48,11 @@ parameter_types! {
/// Std-Dev: 239.45
///
/// Percentiles nanoseconds:
/// 99th: 80_770
/// 95th: 79_394
/// 75th: 79_071
/// 99th: 87_990
/// 95th: 87_768
/// 75th: 87_312
pub const ExtrinsicBaseWeight: Weight =
Weight::from_ref_time(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(79_088));
Weight::from_ref_time(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(87_248));
}

#[cfg(test)]
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.