Skip to content

Commit

Permalink
benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
JuaniRios committed Jul 5, 2024
1 parent bb3befb commit b0dc943
Show file tree
Hide file tree
Showing 14 changed files with 920 additions and 62 deletions.
17 changes: 17 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,23 @@ benchmark-pallet chain="polimec-paseo-local" pallet="pallet-dispenser":
--output=pallets/{{ replace(pallet, "pallet-", "") }}/src/weights.rs \
--template=./.maintain/frame-weight-template.hbs


benchmark-extrinsics pallet="pallet-funding" extrinsics="*" :
cargo run --features runtime-benchmarks --profile=production -p polimec-node benchmark pallet \
--chain=polimec-paseo-local \
--steps=10 \
--repeat=5 \
--pallet={{ pallet }} \
--no-storage-info \
--no-median-slopes \
--no-min-squares \
--extrinsic={{ extrinsics }} \
--wasm-execution=compiled \
--heap-pages=4096 \
--output=benchmarked-extrinsics.rs \
--template=./.maintain/frame-weight-template.hbs


# Build the Node Docker Image
docker-build tag="latest" package="polimec-node":
./scripts/build_image.sh {{ tag }} ./Dockerfile {{ package }}
Expand Down
4 changes: 0 additions & 4 deletions nodes/parachain/src/chain_spec/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,6 @@ pub fn genesis_config(genesis_config_params: GenesisConfigParams) -> serde_json:
} = genesis_config_params;

let system_accounts = vec![
(
<Runtime as pallet_funding::Config>::BlockchainOperationTreasury::get(),
<Runtime as pallet_funding::Config>::NativeCurrency::minimum_balance(),
),
(
<Runtime as pallet_funding::Config>::ContributionTreasury::get(),
<Runtime as pallet_funding::Config>::NativeCurrency::minimum_balance(),
Expand Down
3 changes: 2 additions & 1 deletion nodes/parachain/src/chain_spec/polimec_paseo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ use polimec_runtime::{AccountId, MinCandidateStk};

pub fn get_local_chain_spec() -> GenericChainSpec {
let endowed_accounts = vec![alice(), bob(), charlie(), dave()];
let endowed_accounts = endowed_accounts.iter().map(|x| (x.clone(), MinCandidateStk::get() * 5)).collect::<Vec<_>>();
let endowed_accounts =
endowed_accounts.iter().map(|x| (x.clone(), MinCandidateStk::get() * 20)).collect::<Vec<_>>();
let genesis_config_params = GenesisConfigParams {
stakers: vec![alice(), bob()],
council_members: vec![alice()],
Expand Down
Loading

0 comments on commit b0dc943

Please sign in to comment.