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

178 add benchmarks for custom pallets per runtime #453

Merged
merged 36 commits into from
Jun 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
7e444dd
Make adjustments before benchmarking
bogdanS98 Apr 16, 2024
6adb20a
Run benchmarks on Foucoco
bogdanS98 Apr 16, 2024
cc660fe
Use new weights in Foucoco runtime
bogdanS98 Apr 16, 2024
b68934c
Run benchmarks on Amplitude
bogdanS98 Apr 16, 2024
988d2a4
Use new weights in Amplitude runtime
bogdanS98 Apr 16, 2024
eb25d43
Run some benchmarks on Pendulum
bogdanS98 Apr 16, 2024
5083e60
Use new weights in Pendulum runtime
bogdanS98 Apr 16, 2024
9891c99
Update cargo lock
bogdanS98 Apr 16, 2024
bdf65ef
Remove feature flag from parameters macro
bogdanS98 Apr 17, 2024
1b4b6f8
Actually remove feature flag for parameters macro
bogdanS98 Apr 17, 2024
264a861
Fix failing benchmarks on Pendulum and add comments
bogdanS98 Apr 29, 2024
e592402
Generate weights for Spacewalk pallets on Pendulum runtime
bogdanS98 Apr 29, 2024
6c05fa5
Fix indent
bogdanS98 Apr 29, 2024
525f87c
Merge branch 'main' of https://github.com/pendulum-chain/pendulum int…
bogdanS98 May 14, 2024
d311e3b
Merge branch 'main' of https://github.com/pendulum-chain/pendulum int…
bogdanS98 May 20, 2024
66f91c6
Rerun benchmarks for treasury buyout extension
bogdanS98 May 20, 2024
e7261c5
Fix WeightInfo impls for buyout extension
bogdanS98 May 20, 2024
8054754
Use newer commit in Spacewalk
ebma Jun 3, 2024
37191c5
Amend previous
ebma Jun 3, 2024
09b2583
Change Stellar currency constants
ebma Jun 3, 2024
1cad3aa
Add template to benchmark commands in README
ebma Jun 3, 2024
da890fc
Clean up chain spec
ebma Jun 3, 2024
723aee7
Use mock DIA data provider also in Pendulum
ebma Jun 4, 2024
cc431c7
Change Spacewalk rev version
ebma Jun 4, 2024
9a5307b
Generate weights for issue pallet
ebma Jun 4, 2024
6695f38
Remove tarpaulin report
ebma Jun 4, 2024
6372fe2
Use actual issue weights
ebma Jun 4, 2024
5713515
Merge branch 'main' into 178-add-benchmarks-for-custom-pallets-per-ru…
bogdanS98 Jun 4, 2024
c40c416
Change weights used for issue and redeem pallets
bogdanS98 Jun 4, 2024
abcfd49
Merge branch '178-add-benchmarks-for-custom-pallets-per-runtime' of h…
bogdanS98 Jun 4, 2024
743b51b
Fix parachain-staking benchmarks and add them to all runtimes
bogdanS98 Jun 9, 2024
e607644
Regenerate weights for parachain-staking pallet
bogdanS98 Jun 9, 2024
bc97d7f
Update imports
bogdanS98 Jun 10, 2024
a89ec27
Update imports
bogdanS98 Jun 10, 2024
6a84a93
Revert oracle key value
bogdanS98 Jun 10, 2024
14e449f
Address change requests
bogdanS98 Jun 10, 2024
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
105 changes: 53 additions & 52 deletions Cargo.lock

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

10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Pendulum chain by SatoshiPay. More information about Pendulum can be found [here](https://docs.pendulumchain.org/).

### How to Run Tests

[`mocktopus`](https://docs.rs/mocktopus/latest/mocktopus/) is nightly-only lib, and is used in testing.
So to run the tests, override the toolchain with nightly; minimum version is `nightly-2024-04-18`.

Expand Down Expand Up @@ -162,7 +163,8 @@ runtimes `lib.rs` file.
--extrinsic "*" \
--steps 50 \
--repeat 20 \
--output runtime/pendulum/src/weights/
--output runtime/pendulum/src/weights/ \
--template .maintain/frame-weight-template.hbs
```

#### Amplitude
Expand All @@ -176,7 +178,8 @@ runtimes `lib.rs` file.
--extrinsic "*" \
--steps 50 \
--repeat 20 \
--output runtime/amplitude/src/weights/
--output runtime/amplitude/src/weights/ \
--template .maintain/frame-weight-template.hbs
```

#### Foucoco
Expand All @@ -190,7 +193,8 @@ runtimes `lib.rs` file.
--extrinsic "*" \
--steps 50 \
--repeat 20 \
--output runtime/foucoco/src/weights/
--output runtime/foucoco/src/weights/ \
--template .maintain/frame-weight-template.hbs
```

### How to run in standalone mode
Expand Down
4 changes: 2 additions & 2 deletions chain-extensions/price/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ version = "0.1.0"
targets = ["x86_64-unknown-linux-gnu"]

[dependencies]
chain-extension-common = { path = "../common", default-features = false }
chain-extension-common = { path = "../common", default-features = false }

codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive"] }
log = { version = "0.4.17", default-features = false }
Expand All @@ -21,7 +21,7 @@ frame-system = { git = "https://github.com/paritytech/substrate", default-featur
sp-core = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.42" }
sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.42" }
pallet-contracts = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.42" }
spacewalk-primitives = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"}
spacewalk-primitives = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" }

# Open Runtime Module Library
orml-currencies = { git = "https://github.com/open-web3-stack/open-runtime-module-library.git", default-features = false, branch = "polkadot-v0.9.42" }
Expand Down
6 changes: 3 additions & 3 deletions chain-extensions/token/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive"] }
log = { version = "0.4.17", default-features = false }
chain-extension-common = { path = "../common", default-features = false}
chain-extension-common = { path = "../common", default-features = false }

# Substrate
frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.42" }
frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.42" }
sp-core = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.42" }
sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.42" }
sp-std = {git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42", default-features = false}
sp-std = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42", default-features = false }
pallet-contracts = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.42" }

# Open Runtime Module Library
Expand All @@ -27,7 +27,7 @@ orml-traits = { git = "https://github.com/open-web3-stack/open-runtime-module-li
orml-tokens = { git = "https://github.com/open-web3-stack/open-runtime-module-library.git", default-features = false, branch = "polkadot-v0.9.42" }

# Custom libraries for Spacewalk
spacewalk-primitives = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"}
spacewalk-primitives = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" }

# Pendulum Pallets
orml-currencies-allowance-extension = { path = "../../pallets/orml-currencies-allowance-extension", default-features = false }
Expand Down
Loading
Loading