Skip to content
3 changes: 1 addition & 2 deletions crates/subspace-runtime-primitives/src/extension.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#[cfg(feature = "runtime-benchmarks")]
pub mod benchmarking;
pub mod weights;

use crate::extension::weights::WeightInfo as SubstrateWeightInfo;
use crate::utility::{MaybeNestedCall, nested_call_iter};
use crate::weights::balance_transfer_check_extension::WeightInfo as SubstrateWeightInfo;
use core::marker::PhantomData;
use frame_support::RuntimeDebugNoBound;
use frame_support::pallet_prelude::Weight;
Expand Down
1 change: 1 addition & 0 deletions crates/subspace-runtime-primitives/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

pub mod extension;
pub mod utility;
pub mod weights;

#[cfg(not(feature = "std"))]
extern crate alloc;
Expand Down
3 changes: 3 additions & 0 deletions crates/subspace-runtime-primitives/src/weights.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
//! Shared weights for Subspace production and test runtimes.

pub mod balance_transfer_check_extension;
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@
//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024

// Executed Command:
// ./target/release/subspace-node
// ./target/production/subspace-node
// benchmark
// pallet
// --runtime=./target/release/wbuild/subspace-runtime/subspace_runtime.compact.compressed.wasm
// --runtime=./target/production/wbuild/subspace-runtime/subspace_runtime.compact.compressed.wasm
// --extrinsic=*
// --wasm-execution=compiled
// --genesis-builder=none
// --steps=50
// --repeat=20
// --pallet=balance_transfer_check_extension
// --extrinsic=*
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./crates/subspace-runtime-primitives/src/extension/weights.rs
// --pallet=balance_transfer_check_extension
// --output=./crates/subspace-runtime-primitives/src/weights/balance_transfer_check_extension.rs

#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
Expand Down
26 changes: 13 additions & 13 deletions crates/subspace-runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1285,27 +1285,27 @@ mod benches {
frame_benchmarking::define_benchmarks!(
[frame_benchmarking, BaselineBench::<Runtime>]
[frame_system, SystemBench::<Runtime>]
[pallet_timestamp, Timestamp]
[pallet_subspace, Subspace]
[pallet_subspace_extension, SubspaceExtensionBench::<Runtime>]
[pallet_rewards, Rewards]
[pallet_balances, Balances]
[balance_transfer_check_extension, BalanceTransferCheckBench::<Runtime>]
// pallet_transaction_fees has no calls to benchmark
[pallet_transaction_payment, TransactionPayment]
[pallet_utility, Utility]
[pallet_domains, Domains]
[pallet_mmr, Mmr]
[pallet_rewards, Rewards]
[pallet_runtime_configs, RuntimeConfigs]
[pallet_subspace, Subspace]
[pallet_timestamp, Timestamp]
// pallet_mmr and pallet_subspace_mmr have no calls to benchmark
[pallet_messenger, Messenger]
[pallet_transporter, Transporter]
[pallet_subspace_extension, SubspaceExtensionBench::<Runtime>]
[pallet_messenger_from_domains_extension, MessengerFromDomainsExtensionBench::<Runtime>]
[pallet_transaction_payment, TransactionPayment]
[pallet_utility, Utility]
[pallet_sudo, Sudo]
[pallet_collective, Council]
[pallet_preimage, Preimage]
[pallet_transporter, Transporter]
[pallet_scheduler, Scheduler]
[pallet_collective, Council]
[pallet_democracy, Democracy]
[pallet_preimage, Preimage]
[pallet_multisig, Multisig]
// TODO: benchmark this extension
[balance_transfer_check_extension, BalanceTransferCheckBench::<Runtime>]
[pallet_sudo, Sudo]
);
}

Expand Down
12 changes: 6 additions & 6 deletions crates/subspace-runtime/src/weights/frame_system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@
//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024

// Executed Command:
// ./target/release/subspace-node
// ./target/production/subspace-node
// benchmark
// pallet
// --runtime=./target/release/wbuild/subspace-runtime/subspace_runtime.compact.compressed.wasm
// --runtime=./target/production/wbuild/subspace-runtime/subspace_runtime.compact.compressed.wasm
// --extrinsic=*
// --wasm-execution=compiled
// --genesis-builder=none
// --steps=50
// --repeat=20
// --pallet=frame_system
// --extrinsic=*
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./crates/subspace-runtime/src/weights-tmp/frame_system.rs
// --pallet=frame_system
// --output=./crates/subspace-runtime/src/weights/frame_system.rs

#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
Expand Down
12 changes: 6 additions & 6 deletions crates/subspace-runtime/src/weights/pallet_balances.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@
//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024

// Executed Command:
// ./target/release/subspace-node
// ./target/production/subspace-node
// benchmark
// pallet
// --runtime=./target/release/wbuild/subspace-runtime/subspace_runtime.compact.compressed.wasm
// --runtime=./target/production/wbuild/subspace-runtime/subspace_runtime.compact.compressed.wasm
// --extrinsic=*
// --wasm-execution=compiled
// --genesis-builder=none
// --steps=50
// --repeat=20
// --pallet=pallet_balances
// --extrinsic=*
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./crates/subspace-runtime/src/weights-tmp/pallet_balances.rs
// --pallet=pallet_balances
// --output=./crates/subspace-runtime/src/weights/pallet_balances.rs

#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
Expand Down
12 changes: 6 additions & 6 deletions crates/subspace-runtime/src/weights/pallet_collective.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@
//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024

// Executed Command:
// ./target/release/subspace-node
// ./target/production/subspace-node
// benchmark
// pallet
// --runtime=./target/release/wbuild/subspace-runtime/subspace_runtime.compact.compressed.wasm
// --runtime=./target/production/wbuild/subspace-runtime/subspace_runtime.compact.compressed.wasm
// --extrinsic=*
// --wasm-execution=compiled
// --genesis-builder=none
// --steps=50
// --repeat=20
// --pallet=pallet_collective
// --extrinsic=*
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./crates/subspace-runtime/src/weights-tmp/pallet_collective.rs
// --pallet=pallet_collective
// --output=./crates/subspace-runtime/src/weights/pallet_collective.rs

#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
Expand Down
12 changes: 6 additions & 6 deletions crates/subspace-runtime/src/weights/pallet_domains.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@
//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024

// Executed Command:
// ./target/release/subspace-node
// ./target/production/subspace-node
// benchmark
// pallet
// --runtime=./target/release/wbuild/subspace-runtime/subspace_runtime.compact.compressed.wasm
// --runtime=./target/production/wbuild/subspace-runtime/subspace_runtime.compact.compressed.wasm
// --extrinsic=*
// --wasm-execution=compiled
// --genesis-builder=none
// --steps=50
// --repeat=20
// --pallet=pallet_domains
// --extrinsic=*
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./crates/subspace-runtime/src/weights-tmp/pallet_domains.rs
// --pallet=pallet_domains
// --output=./crates/subspace-runtime/src/weights/pallet_domains.rs

#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
Expand Down
12 changes: 6 additions & 6 deletions crates/subspace-runtime/src/weights/pallet_messenger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@
//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024

// Executed Command:
// ./target/release/subspace-node
// ./target/production/subspace-node
// benchmark
// pallet
// --runtime=./target/release/wbuild/subspace-runtime/subspace_runtime.compact.compressed.wasm
// --runtime=./target/production/wbuild/subspace-runtime/subspace_runtime.compact.compressed.wasm
// --extrinsic=*
// --wasm-execution=compiled
// --genesis-builder=none
// --steps=50
// --repeat=20
// --pallet=pallet_messenger
// --extrinsic=*
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./crates/subspace-runtime/src/weights-tmp/pallet_messenger.rs
// --pallet=pallet_messenger
// --output=./crates/subspace-runtime/src/weights/pallet_messenger.rs

#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@
//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024

// Executed Command:
// ./target/release/subspace-node
// ./target/production/subspace-node
// benchmark
// pallet
// --runtime=./target/release/wbuild/subspace-runtime/subspace_runtime.compact.compressed.wasm
// --runtime=./target/production/wbuild/subspace-runtime/subspace_runtime.compact.compressed.wasm
// --extrinsic=*
// --wasm-execution=compiled
// --genesis-builder=none
// --steps=50
// --repeat=20
// --pallet=pallet_messenger_from_domains_extension
// --extrinsic=*
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./crates/subspace-runtime/src/weights-tmp/pallet_messenger_from_domains_extension.rs
// --pallet=pallet_messenger_from_domains_extension
// --output=./crates/subspace-runtime/src/weights/pallet_messenger_from_domains_extension.rs

#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
Expand Down
12 changes: 6 additions & 6 deletions crates/subspace-runtime/src/weights/pallet_multisig.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@
//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024

// Executed Command:
// ./target/release/subspace-node
// ./target/production/subspace-node
// benchmark
// pallet
// --runtime=./target/release/wbuild/subspace-runtime/subspace_runtime.compact.compressed.wasm
// --runtime=./target/production/wbuild/subspace-runtime/subspace_runtime.compact.compressed.wasm
// --extrinsic=*
// --wasm-execution=compiled
// --genesis-builder=none
// --steps=50
// --repeat=20
// --pallet=pallet_multisig
// --extrinsic=*
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./crates/subspace-runtime/src/weights-tmp/pallet_multisig.rs
// --pallet=pallet_multisig
// --output=./crates/subspace-runtime/src/weights/pallet_multisig.rs

#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
Expand Down
12 changes: 6 additions & 6 deletions crates/subspace-runtime/src/weights/pallet_preimage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@
//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024

// Executed Command:
// ./target/release/subspace-node
// ./target/production/subspace-node
// benchmark
// pallet
// --runtime=./target/release/wbuild/subspace-runtime/subspace_runtime.compact.compressed.wasm
// --runtime=./target/production/wbuild/subspace-runtime/subspace_runtime.compact.compressed.wasm
// --extrinsic=*
// --wasm-execution=compiled
// --genesis-builder=none
// --steps=50
// --repeat=20
// --pallet=pallet_preimage
// --extrinsic=*
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./crates/subspace-runtime/src/weights-tmp/pallet_preimage.rs
// --pallet=pallet_preimage
// --output=./crates/subspace-runtime/src/weights/pallet_preimage.rs

#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
Expand Down
12 changes: 6 additions & 6 deletions crates/subspace-runtime/src/weights/pallet_rewards.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@
//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024

// Executed Command:
// ./target/release/subspace-node
// ./target/production/subspace-node
// benchmark
// pallet
// --runtime=./target/release/wbuild/subspace-runtime/subspace_runtime.compact.compressed.wasm
// --runtime=./target/production/wbuild/subspace-runtime/subspace_runtime.compact.compressed.wasm
// --extrinsic=*
// --wasm-execution=compiled
// --genesis-builder=none
// --steps=50
// --repeat=20
// --pallet=pallet_rewards
// --extrinsic=*
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./crates/subspace-runtime/src/weights-tmp/pallet_rewards.rs
// --pallet=pallet_rewards
// --output=./crates/subspace-runtime/src/weights/pallet_rewards.rs

#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
Expand Down
12 changes: 6 additions & 6 deletions crates/subspace-runtime/src/weights/pallet_runtime_configs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@
//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024

// Executed Command:
// ./target/release/subspace-node
// ./target/production/subspace-node
// benchmark
// pallet
// --runtime=./target/release/wbuild/subspace-runtime/subspace_runtime.compact.compressed.wasm
// --runtime=./target/production/wbuild/subspace-runtime/subspace_runtime.compact.compressed.wasm
// --extrinsic=*
// --wasm-execution=compiled
// --genesis-builder=none
// --steps=50
// --repeat=20
// --pallet=pallet_runtime_configs
// --extrinsic=*
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./crates/subspace-runtime/src/weights-tmp/pallet_runtime_configs.rs
// --pallet=pallet_runtime_configs
// --output=./crates/subspace-runtime/src/weights/pallet_runtime_configs.rs

#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
Expand Down
12 changes: 6 additions & 6 deletions crates/subspace-runtime/src/weights/pallet_scheduler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@
//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024

// Executed Command:
// ./target/release/subspace-node
// ./target/production/subspace-node
// benchmark
// pallet
// --runtime=./target/release/wbuild/subspace-runtime/subspace_runtime.compact.compressed.wasm
// --runtime=./target/production/wbuild/subspace-runtime/subspace_runtime.compact.compressed.wasm
// --extrinsic=*
// --wasm-execution=compiled
// --genesis-builder=none
// --steps=50
// --repeat=20
// --pallet=pallet_scheduler
// --extrinsic=*
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./crates/subspace-runtime/src/weights-tmp/pallet_scheduler.rs
// --pallet=pallet_scheduler
// --output=./crates/subspace-runtime/src/weights/pallet_scheduler.rs

#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
Expand Down
12 changes: 6 additions & 6 deletions crates/subspace-runtime/src/weights/pallet_subspace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@
//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024

// Executed Command:
// ./target/release/subspace-node
// ./target/production/subspace-node
// benchmark
// pallet
// --runtime=./target/release/wbuild/subspace-runtime/subspace_runtime.compact.compressed.wasm
// --runtime=./target/production/wbuild/subspace-runtime/subspace_runtime.compact.compressed.wasm
// --extrinsic=*
// --wasm-execution=compiled
// --genesis-builder=none
// --steps=50
// --repeat=20
// --pallet=pallet_subspace
// --extrinsic=*
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./crates/subspace-runtime/src/weights-tmp/pallet_subspace.rs
// --pallet=pallet_subspace
// --output=./crates/subspace-runtime/src/weights/pallet_subspace.rs

#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
Expand Down
Loading
Loading