|
12 | 12 | // benchmark |
13 | 13 | // pallet |
14 | 14 | // --runtime=./target/release/wbuild/subspace-runtime/subspace_runtime.compact.compressed.wasm |
15 | | -// --genesis-builder=runtime |
| 15 | +// --genesis-builder=none |
16 | 16 | // --steps=50 |
17 | 17 | // --repeat=20 |
18 | 18 | // --pallet=pallet_domains |
@@ -50,6 +50,8 @@ pub trait WeightInfo { |
50 | 50 | fn update_domain_operator_allow_list() -> Weight; |
51 | 51 | fn transfer_treasury_funds() -> Weight; |
52 | 52 | fn submit_receipt() -> Weight; |
| 53 | + fn validate_submit_bundle() -> Weight; |
| 54 | + fn validate_singleton_receipt() -> Weight; |
53 | 55 | } |
54 | 56 |
|
55 | 57 | /// Weights for pallet_domains using the Substrate node and recommended hardware. |
@@ -520,6 +522,110 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> { |
520 | 522 | .saturating_add(T::DbWeight::get().reads(5_u64)) |
521 | 523 | .saturating_add(T::DbWeight::get().writes(5_u64)) |
522 | 524 | } |
| 525 | + /// Storage: `Domains::DomainRegistry` (r:1 w:0) |
| 526 | + /// Proof: `Domains::DomainRegistry` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 527 | + /// Storage: `Domains::HeadDomainNumber` (r:1 w:0) |
| 528 | + /// Proof: `Domains::HeadDomainNumber` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 529 | + /// Storage: `Domains::ExecutionInbox` (r:2 w:0) |
| 530 | + /// Proof: `Domains::ExecutionInbox` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 531 | + /// Storage: `Domains::DomainRuntimeUpgradeRecords` (r:1 w:0) |
| 532 | + /// Proof: `Domains::DomainRuntimeUpgradeRecords` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 533 | + /// Storage: `Domains::HeadReceiptNumber` (r:1 w:0) |
| 534 | + /// Proof: `Domains::HeadReceiptNumber` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 535 | + /// Storage: `Domains::FrozenDomains` (r:1 w:0) |
| 536 | + /// Proof: `Domains::FrozenDomains` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) |
| 537 | + /// Storage: `Domains::Operators` (r:1 w:0) |
| 538 | + /// Proof: `Domains::Operators` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 539 | + /// Storage: `Domains::LatestSubmittedER` (r:1 w:0) |
| 540 | + /// Proof: `Domains::LatestSubmittedER` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 541 | + /// Storage: `Domains::OperatorHighestSlot` (r:1 w:0) |
| 542 | + /// Proof: `Domains::OperatorHighestSlot` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 543 | + /// Storage: `Domains::OperatorBundleSlot` (r:1 w:0) |
| 544 | + /// Proof: `Domains::OperatorBundleSlot` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 545 | + /// Storage: `Domains::LastEpochStakingDistribution` (r:1 w:0) |
| 546 | + /// Proof: `Domains::LastEpochStakingDistribution` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 547 | + /// Storage: `Domains::DomainStakingSummary` (r:1 w:0) |
| 548 | + /// Proof: `Domains::DomainStakingSummary` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 549 | + /// Storage: `Subspace::BlockSlots` (r:1 w:0) |
| 550 | + /// Proof: `Subspace::BlockSlots` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) |
| 551 | + /// Storage: `System::BlockHash` (r:1 w:0) |
| 552 | + /// Proof: `System::BlockHash` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) |
| 553 | + /// Storage: `Domains::NewAddedHeadReceipt` (r:1 w:0) |
| 554 | + /// Proof: `Domains::NewAddedHeadReceipt` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 555 | + /// Storage: `Domains::LatestConfirmedDomainExecutionReceipt` (r:1 w:0) |
| 556 | + /// Proof: `Domains::LatestConfirmedDomainExecutionReceipt` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 557 | + /// Storage: `Domains::ConsensusBlockHash` (r:1 w:0) |
| 558 | + /// Proof: `Domains::ConsensusBlockHash` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 559 | + /// Storage: `Domains::BlockTree` (r:1 w:0) |
| 560 | + /// Proof: `Domains::BlockTree` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 561 | + /// Storage: `RuntimeConfigs::EnableDynamicCostOfStorage` (r:1 w:0) |
| 562 | + /// Proof: `RuntimeConfigs::EnableDynamicCostOfStorage` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) |
| 563 | + /// Storage: `System::Account` (r:1 w:1) |
| 564 | + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) |
| 565 | + /// Storage: `TransactionFees::CollectedBlockFees` (r:1 w:1) |
| 566 | + /// Proof: `TransactionFees::CollectedBlockFees` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) |
| 567 | + fn validate_submit_bundle() -> Weight { |
| 568 | + // Proof Size summary in bytes: |
| 569 | + // Measured: `1411` |
| 570 | + // Estimated: `7351` |
| 571 | + // Minimum execution time: 500_000_000 picoseconds. |
| 572 | + Weight::from_parts(516_000_000, 0) |
| 573 | + .saturating_add(Weight::from_parts(0, 7351)) |
| 574 | + .saturating_add(T::DbWeight::get().reads(22)) |
| 575 | + .saturating_add(T::DbWeight::get().writes(2)) |
| 576 | + } |
| 577 | + /// Storage: `Domains::DomainRegistry` (r:1 w:0) |
| 578 | + /// Proof: `Domains::DomainRegistry` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 579 | + /// Storage: `Domains::HeadDomainNumber` (r:1 w:0) |
| 580 | + /// Proof: `Domains::HeadDomainNumber` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 581 | + /// Storage: `Domains::ExecutionInbox` (r:2 w:0) |
| 582 | + /// Proof: `Domains::ExecutionInbox` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 583 | + /// Storage: `Domains::DomainRuntimeUpgradeRecords` (r:1 w:0) |
| 584 | + /// Proof: `Domains::DomainRuntimeUpgradeRecords` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 585 | + /// Storage: `Domains::HeadReceiptNumber` (r:1 w:0) |
| 586 | + /// Proof: `Domains::HeadReceiptNumber` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 587 | + /// Storage: `Domains::FrozenDomains` (r:1 w:0) |
| 588 | + /// Proof: `Domains::FrozenDomains` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) |
| 589 | + /// Storage: `Domains::Operators` (r:1 w:0) |
| 590 | + /// Proof: `Domains::Operators` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 591 | + /// Storage: `Domains::LatestSubmittedER` (r:1 w:0) |
| 592 | + /// Proof: `Domains::LatestSubmittedER` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 593 | + /// Storage: `Domains::OperatorHighestSlot` (r:1 w:0) |
| 594 | + /// Proof: `Domains::OperatorHighestSlot` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 595 | + /// Storage: `Domains::OperatorBundleSlot` (r:1 w:0) |
| 596 | + /// Proof: `Domains::OperatorBundleSlot` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 597 | + /// Storage: `Domains::LastEpochStakingDistribution` (r:1 w:0) |
| 598 | + /// Proof: `Domains::LastEpochStakingDistribution` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 599 | + /// Storage: `Domains::DomainStakingSummary` (r:1 w:0) |
| 600 | + /// Proof: `Domains::DomainStakingSummary` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 601 | + /// Storage: `Subspace::BlockSlots` (r:1 w:0) |
| 602 | + /// Proof: `Subspace::BlockSlots` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) |
| 603 | + /// Storage: `System::BlockHash` (r:1 w:0) |
| 604 | + /// Proof: `System::BlockHash` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) |
| 605 | + /// Storage: `Domains::NewAddedHeadReceipt` (r:1 w:0) |
| 606 | + /// Proof: `Domains::NewAddedHeadReceipt` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 607 | + /// Storage: `Domains::LatestConfirmedDomainExecutionReceipt` (r:1 w:0) |
| 608 | + /// Proof: `Domains::LatestConfirmedDomainExecutionReceipt` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 609 | + /// Storage: `Domains::ConsensusBlockHash` (r:1 w:0) |
| 610 | + /// Proof: `Domains::ConsensusBlockHash` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 611 | + /// Storage: `Domains::BlockTree` (r:1 w:0) |
| 612 | + /// Proof: `Domains::BlockTree` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 613 | + /// Storage: `RuntimeConfigs::EnableDynamicCostOfStorage` (r:1 w:0) |
| 614 | + /// Proof: `RuntimeConfigs::EnableDynamicCostOfStorage` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) |
| 615 | + /// Storage: `System::Account` (r:1 w:1) |
| 616 | + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) |
| 617 | + /// Storage: `TransactionFees::CollectedBlockFees` (r:1 w:1) |
| 618 | + /// Proof: `TransactionFees::CollectedBlockFees` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) |
| 619 | + fn validate_singleton_receipt() -> Weight { |
| 620 | + // Proof Size summary in bytes: |
| 621 | + // Measured: `1441` |
| 622 | + // Estimated: `7381` |
| 623 | + // Minimum execution time: 494_000_000 picoseconds. |
| 624 | + Weight::from_parts(510_000_000, 0) |
| 625 | + .saturating_add(Weight::from_parts(0, 7381)) |
| 626 | + .saturating_add(T::DbWeight::get().reads(22)) |
| 627 | + .saturating_add(T::DbWeight::get().writes(2)) |
| 628 | + } |
523 | 629 | } |
524 | 630 |
|
525 | 631 | // For backwards compatibility and tests |
@@ -989,4 +1095,108 @@ impl WeightInfo for () { |
989 | 1095 | .saturating_add(ParityDbWeight::get().reads(5_u64)) |
990 | 1096 | .saturating_add(ParityDbWeight::get().writes(5_u64)) |
991 | 1097 | } |
| 1098 | + /// Storage: `Domains::DomainRegistry` (r:1 w:0) |
| 1099 | + /// Proof: `Domains::DomainRegistry` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 1100 | + /// Storage: `Domains::HeadDomainNumber` (r:1 w:0) |
| 1101 | + /// Proof: `Domains::HeadDomainNumber` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 1102 | + /// Storage: `Domains::ExecutionInbox` (r:2 w:0) |
| 1103 | + /// Proof: `Domains::ExecutionInbox` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 1104 | + /// Storage: `Domains::DomainRuntimeUpgradeRecords` (r:1 w:0) |
| 1105 | + /// Proof: `Domains::DomainRuntimeUpgradeRecords` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 1106 | + /// Storage: `Domains::HeadReceiptNumber` (r:1 w:0) |
| 1107 | + /// Proof: `Domains::HeadReceiptNumber` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 1108 | + /// Storage: `Domains::FrozenDomains` (r:1 w:0) |
| 1109 | + /// Proof: `Domains::FrozenDomains` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) |
| 1110 | + /// Storage: `Domains::Operators` (r:1 w:0) |
| 1111 | + /// Proof: `Domains::Operators` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 1112 | + /// Storage: `Domains::LatestSubmittedER` (r:1 w:0) |
| 1113 | + /// Proof: `Domains::LatestSubmittedER` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 1114 | + /// Storage: `Domains::OperatorHighestSlot` (r:1 w:0) |
| 1115 | + /// Proof: `Domains::OperatorHighestSlot` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 1116 | + /// Storage: `Domains::OperatorBundleSlot` (r:1 w:0) |
| 1117 | + /// Proof: `Domains::OperatorBundleSlot` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 1118 | + /// Storage: `Domains::LastEpochStakingDistribution` (r:1 w:0) |
| 1119 | + /// Proof: `Domains::LastEpochStakingDistribution` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 1120 | + /// Storage: `Domains::DomainStakingSummary` (r:1 w:0) |
| 1121 | + /// Proof: `Domains::DomainStakingSummary` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 1122 | + /// Storage: `Subspace::BlockSlots` (r:1 w:0) |
| 1123 | + /// Proof: `Subspace::BlockSlots` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) |
| 1124 | + /// Storage: `System::BlockHash` (r:1 w:0) |
| 1125 | + /// Proof: `System::BlockHash` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) |
| 1126 | + /// Storage: `Domains::NewAddedHeadReceipt` (r:1 w:0) |
| 1127 | + /// Proof: `Domains::NewAddedHeadReceipt` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 1128 | + /// Storage: `Domains::LatestConfirmedDomainExecutionReceipt` (r:1 w:0) |
| 1129 | + /// Proof: `Domains::LatestConfirmedDomainExecutionReceipt` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 1130 | + /// Storage: `Domains::ConsensusBlockHash` (r:1 w:0) |
| 1131 | + /// Proof: `Domains::ConsensusBlockHash` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 1132 | + /// Storage: `Domains::BlockTree` (r:1 w:0) |
| 1133 | + /// Proof: `Domains::BlockTree` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 1134 | + /// Storage: `RuntimeConfigs::EnableDynamicCostOfStorage` (r:1 w:0) |
| 1135 | + /// Proof: `RuntimeConfigs::EnableDynamicCostOfStorage` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) |
| 1136 | + /// Storage: `System::Account` (r:1 w:1) |
| 1137 | + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) |
| 1138 | + /// Storage: `TransactionFees::CollectedBlockFees` (r:1 w:1) |
| 1139 | + /// Proof: `TransactionFees::CollectedBlockFees` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) |
| 1140 | + fn validate_submit_bundle() -> Weight { |
| 1141 | + // Proof Size summary in bytes: |
| 1142 | + // Measured: `1411` |
| 1143 | + // Estimated: `7351` |
| 1144 | + // Minimum execution time: 500_000_000 picoseconds. |
| 1145 | + Weight::from_parts(516_000_000, 0) |
| 1146 | + .saturating_add(Weight::from_parts(0, 7351)) |
| 1147 | + .saturating_add(ParityDbWeight::get().reads(22)) |
| 1148 | + .saturating_add(ParityDbWeight::get().writes(2)) |
| 1149 | + } |
| 1150 | + /// Storage: `Domains::DomainRegistry` (r:1 w:0) |
| 1151 | + /// Proof: `Domains::DomainRegistry` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 1152 | + /// Storage: `Domains::HeadDomainNumber` (r:1 w:0) |
| 1153 | + /// Proof: `Domains::HeadDomainNumber` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 1154 | + /// Storage: `Domains::ExecutionInbox` (r:2 w:0) |
| 1155 | + /// Proof: `Domains::ExecutionInbox` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 1156 | + /// Storage: `Domains::DomainRuntimeUpgradeRecords` (r:1 w:0) |
| 1157 | + /// Proof: `Domains::DomainRuntimeUpgradeRecords` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 1158 | + /// Storage: `Domains::HeadReceiptNumber` (r:1 w:0) |
| 1159 | + /// Proof: `Domains::HeadReceiptNumber` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 1160 | + /// Storage: `Domains::FrozenDomains` (r:1 w:0) |
| 1161 | + /// Proof: `Domains::FrozenDomains` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) |
| 1162 | + /// Storage: `Domains::Operators` (r:1 w:0) |
| 1163 | + /// Proof: `Domains::Operators` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 1164 | + /// Storage: `Domains::LatestSubmittedER` (r:1 w:0) |
| 1165 | + /// Proof: `Domains::LatestSubmittedER` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 1166 | + /// Storage: `Domains::OperatorHighestSlot` (r:1 w:0) |
| 1167 | + /// Proof: `Domains::OperatorHighestSlot` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 1168 | + /// Storage: `Domains::OperatorBundleSlot` (r:1 w:0) |
| 1169 | + /// Proof: `Domains::OperatorBundleSlot` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 1170 | + /// Storage: `Domains::LastEpochStakingDistribution` (r:1 w:0) |
| 1171 | + /// Proof: `Domains::LastEpochStakingDistribution` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 1172 | + /// Storage: `Domains::DomainStakingSummary` (r:1 w:0) |
| 1173 | + /// Proof: `Domains::DomainStakingSummary` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 1174 | + /// Storage: `Subspace::BlockSlots` (r:1 w:0) |
| 1175 | + /// Proof: `Subspace::BlockSlots` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) |
| 1176 | + /// Storage: `System::BlockHash` (r:1 w:0) |
| 1177 | + /// Proof: `System::BlockHash` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) |
| 1178 | + /// Storage: `Domains::NewAddedHeadReceipt` (r:1 w:0) |
| 1179 | + /// Proof: `Domains::NewAddedHeadReceipt` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 1180 | + /// Storage: `Domains::LatestConfirmedDomainExecutionReceipt` (r:1 w:0) |
| 1181 | + /// Proof: `Domains::LatestConfirmedDomainExecutionReceipt` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 1182 | + /// Storage: `Domains::ConsensusBlockHash` (r:1 w:0) |
| 1183 | + /// Proof: `Domains::ConsensusBlockHash` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 1184 | + /// Storage: `Domains::BlockTree` (r:1 w:0) |
| 1185 | + /// Proof: `Domains::BlockTree` (`max_values`: None, `max_size`: None, mode: `Measured`) |
| 1186 | + /// Storage: `RuntimeConfigs::EnableDynamicCostOfStorage` (r:1 w:0) |
| 1187 | + /// Proof: `RuntimeConfigs::EnableDynamicCostOfStorage` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) |
| 1188 | + /// Storage: `System::Account` (r:1 w:1) |
| 1189 | + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) |
| 1190 | + /// Storage: `TransactionFees::CollectedBlockFees` (r:1 w:1) |
| 1191 | + /// Proof: `TransactionFees::CollectedBlockFees` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) |
| 1192 | + fn validate_singleton_receipt() -> Weight { |
| 1193 | + // Proof Size summary in bytes: |
| 1194 | + // Measured: `1441` |
| 1195 | + // Estimated: `7381` |
| 1196 | + // Minimum execution time: 494_000_000 picoseconds. |
| 1197 | + Weight::from_parts(510_000_000, 0) |
| 1198 | + .saturating_add(Weight::from_parts(0, 7381)) |
| 1199 | + .saturating_add(ParityDbWeight::get().reads(22)) |
| 1200 | + .saturating_add(ParityDbWeight::get().writes(2)) |
| 1201 | + } |
992 | 1202 | } |
0 commit comments