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

Update liquid crowdloan #2573

Merged
merged 5 commits into from
Jul 11, 2023
Merged

Update liquid crowdloan #2573

merged 5 commits into from
Jul 11, 2023

Conversation

xlc
Copy link
Member

@xlc xlc commented Jul 8, 2023

closes #2566

@xlc xlc requested a review from wangjj9219 July 8, 2023 04:45
@xlc
Copy link
Member Author

xlc commented Jul 8, 2023

/bench module module_liquid_crowdloan

@github-actions
Copy link

github-actions bot commented Jul 8, 2023

Request: /bench module module_liquid_crowdloan
Command: make benchmark-module options="--quiet --color=never" pallet=module_liquid_crowdloan pallet_folder=liquid-crowdloan

Running...

@xlc
Copy link
Member Author

xlc commented Jul 8, 2023

/bench module module_liquid_crowdloan

@github-actions
Copy link

github-actions bot commented Jul 8, 2023

Request: /bench module module_liquid_crowdloan
Command: make benchmark-module options="--quiet --color=never" pallet=module_liquid_crowdloan pallet_folder=liquid-crowdloan

Results
cargo run --quiet --color=never --release --bin=acala --features=runtime-benchmarks --features=with-mandala-runtime -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=module_liquid_crowdloan --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./modules/liquid-crowdloan/src/weights.rs --template=./templates/module-weight-template.hbs
Pallet: "module_liquid_crowdloan", Extrinsic: "redeem", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: LiquidCrowdloan RedeemCurrencyId (r:1 w:0)
Proof: LiquidCrowdloan RedeemCurrencyId (max_values: Some(1), max_size: Some(43), added: 538, mode: MaxEncodedLen)
Storage: Tokens Accounts (r:3 w:3)
Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen)
Storage: Tokens TotalIssuance (r:1 w:1)
Proof: Tokens TotalIssuance (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen)
Storage: EvmAccounts EvmAddresses (r:2 w:0)
Proof: EvmAccounts EvmAddresses (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen)
Storage: System Account (r:1 w:1)
Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)

-- Proof Sizes --

2931 bytes
2931 bytes
2931 bytes
2931 bytes
2931 bytes
2931 bytes
2931 bytes
2931 bytes
2931 bytes
2931 bytes
2931 bytes
2931 bytes
2931 bytes
2931 bytes
2931 bytes
2931 bytes
2931 bytes
2931 bytes
2931 bytes
2931 bytes

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    130.4
            µs

Reads = 8
Writes = 5
Recorded proof Size = 2931

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    130.4
            µs

Reads = 8
Writes = 5
Recorded proof Size = 2931

Pallet: "module_liquid_crowdloan", Extrinsic: "transfer_from_crowdloan_vault", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: XcmInterface XcmDestWeightAndFee (r:1 w:0)
Proof Skipped: XcmInterface XcmDestWeightAndFee (max_values: None, max_size: None, mode: Measured)
Storage: ParachainInfo ParachainId (r:1 w:0)
Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Storage: ParachainSystem HostConfiguration (r:1 w:0)
Proof Skipped: ParachainSystem HostConfiguration (max_values: Some(1), max_size: None, mode: Measured)
Storage: ParachainSystem PendingUpwardMessages (r:1 w:1)
Proof Skipped: ParachainSystem PendingUpwardMessages (max_values: Some(1), max_size: None, mode: Measured)

-- Proof Sizes --

1255 bytes
1255 bytes
1255 bytes
1255 bytes
1255 bytes
1255 bytes
1255 bytes
1255 bytes
1255 bytes
1255 bytes
1255 bytes
1255 bytes
1255 bytes
1255 bytes
1255 bytes
1255 bytes
1255 bytes
1255 bytes
1255 bytes
1255 bytes

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    47.41
            µs

Reads = 4
Writes = 1
Recorded proof Size = 1255

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    47.41
            µs

Reads = 4
Writes = 1
Recorded proof Size = 1255

Pallet: "module_liquid_crowdloan", Extrinsic: "set_redeem_currency_id", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: LiquidCrowdloan RedeemCurrencyId (r:0 w:1)
Proof: LiquidCrowdloan RedeemCurrencyId (max_values: Some(1), max_size: Some(43), added: 538, mode: MaxEncodedLen)

-- Proof Sizes --

1001 bytes
1001 bytes
1001 bytes
1001 bytes
1001 bytes
1001 bytes
1001 bytes
1001 bytes
1001 bytes
1001 bytes
1001 bytes
1001 bytes
1001 bytes
1001 bytes
1001 bytes
1001 bytes
1001 bytes
1001 bytes
1001 bytes
1001 bytes

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    21.13
            µs

Reads = 0
Writes = 1
Recorded proof Size = 1001

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    21.13
            µs

Reads = 0
Writes = 1
Recorded proof Size = 1001

Created file: "./modules/liquid-crowdloan/src/weights.rs"

@xlc xlc requested a review from zjb0807 July 11, 2023 02:42
@xlc xlc merged commit b997a7e into master Jul 11, 2023
6 of 7 checks passed
@xlc xlc deleted the update-liquid-crowdloan branch July 11, 2023 03:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

allow liquid crowdloan pallet to convert LCDOT to LDOT and withdraw LDOT
2 participants