Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Try to fix benchmarking #26

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
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
5 changes: 0 additions & 5 deletions Cargo.lock

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

9 changes: 1 addition & 8 deletions node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,13 @@ path = 'src/main.rs'
runtime-benchmarks = [
'datahighway-parachain-runtime/runtime-benchmarks',
'polkadot-cli/runtime-benchmarks',
'try-runtime-cli',
]
try-runtime = [ 'datahighway-parachain-runtime/try-runtime' ]

[dependencies]
derive_more = '0.99.2'
log = '0.4.14'
codec = { version = '2.0.0', package = 'parity-scale-codec', default-features = false, features = ['derive', 'max-encoded-len'] }
codec = { version = '2.0.0', package = 'parity-scale-codec' }
clap = { version = '3.1', features = ['derive'] }
serde = { version = '1.0.136', features = ['derive'] }
serde_json = '1.0.74'
Expand All @@ -47,7 +46,6 @@ module-primitives = { version = '3.0.6', default-features = false, path = '../pa
# Substrate Dependencies
frame-benchmarking = { git = 'https://github.com/paritytech/substrate', branch = 'polkadot-v0.9.17' }
frame-benchmarking-cli = { git = 'https://github.com/paritytech/substrate', branch = 'polkadot-v0.9.17' }
frame-try-runtime = { git = 'https://github.com/paritytech/substrate', branch = 'polkadot-v0.9.17', optional = true }
try-runtime-cli = { git = 'https://github.com/paritytech/substrate', branch = 'polkadot-v0.9.17', optional = true }

pallet-transaction-payment-rpc = { git = 'https://github.com/paritytech/substrate', branch = 'polkadot-v0.9.17' }
Expand All @@ -72,7 +70,6 @@ sc-transaction-pool-api = { git = 'https://github.com/paritytech/substrate', bra
sc-tracing = { git = 'https://github.com/paritytech/substrate', branch = 'polkadot-v0.9.17' }

## Substrate Primitive Dependencies
sp-authorship = { git = 'https://github.com/paritytech/substrate', branch = 'polkadot-v0.9.17' }
sp-api = { git = 'https://github.com/paritytech/substrate', branch = 'polkadot-v0.9.17' }
sp-block-builder = { git = 'https://github.com/paritytech/substrate', branch = 'polkadot-v0.9.17' }
sp-blockchain = { git = 'https://github.com/paritytech/substrate', branch = 'polkadot-v0.9.17' }
Expand All @@ -85,7 +82,6 @@ sp-offchain = { git = 'https://github.com/paritytech/substrate', branch = 'polka
sp-runtime = { git = 'https://github.com/paritytech/substrate', branch = 'polkadot-v0.9.17' }
sp-session = { git = 'https://github.com/paritytech/substrate', branch = 'polkadot-v0.9.17' }
sp-timestamp = { git = 'https://github.com/paritytech/substrate', branch = 'polkadot-v0.9.17' }
sp-tracing = { git = 'https://github.com/paritytech/substrate', branch = 'polkadot-v0.9.17' }
sp-transaction-pool = { git = 'https://github.com/paritytech/substrate', branch = 'polkadot-v0.9.17' }

# Cumulus dependencies
Expand All @@ -106,6 +102,3 @@ polkadot-parachain = { git = 'https://github.com/paritytech/polkadot', branch =
polkadot-primitives = { git = 'https://github.com/paritytech/polkadot', branch = 'release-v0.9.17' }
polkadot-service = { git = 'https://github.com/paritytech/polkadot', branch = 'release-v0.9.17' }
xcm = { git = 'https://github.com/paritytech/polkadot', default-features = false, branch = 'release-v0.9.17' }

[dev-dependencies]
futures = { version = '0.3.16' }
2 changes: 0 additions & 2 deletions runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,11 @@ runtime-benchmarks = [
'frame-system-benchmarking',
'frame-support/runtime-benchmarks',
'frame-system/runtime-benchmarks',
'cumulus-pallet-session-benchmarking/runtime-benchmarks',
'pallet-utility/runtime-benchmarks',
'pallet-timestamp/runtime-benchmarks',
'pallet-indices/runtime-benchmarks',
'pallet-balances/runtime-benchmarks',
'pallet-collator-selection/runtime-benchmarks',
'pallet-xcm/runtime-benchmarks',
'pallet-treasury/runtime-benchmarks',
]

Expand Down
2 changes: 0 additions & 2 deletions runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -588,8 +588,6 @@ mod benches {
[pallet_indices, Indices]
[pallet_balances, Balances]
[pallet_collator_selection, CollatorSelection]
[pallet_aura, Aura]
[pallet_xcm, PolkadotXcm]
[pallet_treasury, Treasury]
);
}
Expand Down
49 changes: 0 additions & 49 deletions scripts/benchmark_all_pallets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,61 +9,12 @@ mkdir -p $DATAHIGHWAY_RUNTIME_WEIGHT_DIR

pallets=(
"frame_system" \
"cumulus_pallet_parachain_system" \
"pallet_utility" \
"pallet_timestamp" \
"pallet_identity" \
"pallet_scheduler" \
"parachain_info" \
"pallet_indices" \
"pallet_balances" \
"pallet_transaction_payment" \
"pallet_collator_selection" \
"pallet_democracy" \
"pallet_xcm" \
"pallet_collective" \
"pallet_elections_phragmen" \
"pallet_membership" \
"pallet_treasury" \
"pallet_bounties" \
"pallet_child_bounties" \
"pallet_tips" \
"pallet_preimage" \
"pallet_proxy" \
"pallet_multisig" \
"pallet_referenda" \
"pallet_conviction_voting" \
"membership_supernodes" \
"roaming_operators" \
"roaming_networks" \
"roaming_organizations" \
"roaming_network_servers" \
"roaming_devices" \
"roaming_routing_profiles" \
"roaming_service_profiles" \
"roaming_accounting_policies" \
"roaming_agreement_policies" \
"roaming_network_profiles" \
"roaming_device_profiles" \
"roaming_sessions" \
"roaming_billing_policies" \
"roaming_charging_policies" \
"roaming_packet_bundles" \
"mining_setting_token" \
"mining_setting_hardware" \
"mining_rates_token" \
"mining_rates_hardware" \
"mining_sampling_token" \
"mining_sampling_hardware" \
"mining_eligibility_token" \
"mining_eligibility_hardware" \
"mining_eligibility_proxy" \
"mining_lodgements_hardware" \
"mining_claims_token" \
"mining_claims_hardware" \
"mining_execution_token" \
"exchange_rate" \
"treasury_dao" \
)

for pallet in ${pallets[*]}; do
Expand Down