Skip to content

Conversation

@syan095
Copy link
Contributor

@syan095 syan095 commented Oct 27, 2021

TotalStakingCurrency in the HomaLite module periodically updates to simulate staking rewards from the Relaychain.
Add Configuration for update frequency and interest rate.

closes #1497

Roy Yang added 4 commits October 27, 2021 15:51
…eriodic-update

* origin/master:
  Integration tests and homa lite fixes (#1524)
  support BNC as fee token (#1528)
  Remove dex trading path check in predeploy-contracts (#1529)
  bump spec version
  update orml (#1533)
  use PolkadotXcm for wrap version (#1530)
  set xcm version to 2 upon upgrade (#1515)
  test on release branch
  increase trading path limit (#1522)
  bump spec version

# Conflicts:
#	modules/homa-lite/src/tests.rs
@syan095 syan095 marked this pull request as ready for review October 27, 2021 23:21
@syan095
Copy link
Contributor Author

syan095 commented Oct 28, 2021

/bench runtime module module_homa_lite

@ghost
Copy link

ghost commented Oct 28, 2021

Finished benchmark for branch: feature/homa-lite-periodic-update

Benchmark: Benchmark Runtime Module

cargo run --release --color=never --bin=acala --features=runtime-benchmarks --features=with-mandala-runtime -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=module_homa_lite --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./modules/homa-lite/src/weights.rs --template=./templates/module-weight-template.hbs

Results

Pallet: "module_homa_lite", Extrinsic: "on_idle", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite ScheduledUnbond (r:1 w:1)
Storage: ParachainSystem ValidationData (r:1 w:0)
Storage: ParachainInfo ParachainId (r:1 w:0)
Storage: HomaLite XcmDestWeight (r:1 w:0)
Storage: ParachainSystem HostConfiguration (r:1 w:0)
Storage: ParachainSystem PendingUpwardMessages (r:1 w:1)
Storage: HomaLite AvailableStakingBalance (r:1 w:1)
Storage: HomaLite RedeemRequests (r:4 w:3)
Storage: HomaLite TotalStakingCurrency (r:1 w:1)
Storage: Tokens TotalIssuance (r:2 w:2)
Storage: Tokens Accounts (r:6 w:6)
Storage: System Account (r:3 w:3)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 468.4
µs

Reads = 23
Writes = 18

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 468.4
µs

Reads = 23
Writes = 18

Pallet: "module_homa_lite", Extrinsic: "on_initialize", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite TotalStakingCurrency (r:1 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 20.47
µs

Reads = 1
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 20.47
µs

Reads = 1
Writes = 1

Pallet: "module_homa_lite", Extrinsic: "mint", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: Tokens Accounts (r:2 w:2)
Storage: HomaLite TotalStakingCurrency (r:1 w:1)
Storage: Tokens TotalIssuance (r:2 w:2)
Storage: HomaLite RedeemRequests (r:1 w:0)
Storage: HomaLite StakingCurrencyMintCap (r:1 w:0)
Storage: ParachainInfo ParachainId (r:1 w:0)
Storage: HomaLite XcmDestWeight (r:1 w:0)
Storage: UnknownTokens ConcreteFungibleBalances (r:1 w:0)
Storage: EvmAccounts EvmAddresses (r:1 w:0)
Storage: EVM Accounts (r:1 w:0)
Storage: ParachainSystem HostConfiguration (r:1 w:0)
Storage: ParachainSystem PendingUpwardMessages (r:1 w:1)
Storage: EvmAccounts Accounts (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 251
µs

Reads = 14
Writes = 7

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 251
µs

Reads = 14
Writes = 7

Pallet: "module_homa_lite", Extrinsic: "mint_for_requests", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: Tokens Accounts (r:8 w:8)
Storage: HomaLite TotalStakingCurrency (r:1 w:1)
Storage: Tokens TotalIssuance (r:2 w:2)
Storage: HomaLite RedeemRequests (r:4 w:3)
Storage: System Account (r:3 w:3)
Storage: EvmAccounts EvmAddresses (r:3 w:0)
Storage: EVM Accounts (r:3 w:0)
Storage: HomaLite StakingCurrencyMintCap (r:1 w:0)
Storage: ParachainInfo ParachainId (r:1 w:0)
Storage: HomaLite XcmDestWeight (r:1 w:0)
Storage: UnknownTokens ConcreteFungibleBalances (r:1 w:0)
Storage: ParachainSystem HostConfiguration (r:1 w:0)
Storage: ParachainSystem PendingUpwardMessages (r:1 w:1)
Storage: EvmAccounts Accounts (r:0 w:3)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 633.2
µs

Reads = 30
Writes = 21

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 633.2
µs

Reads = 30
Writes = 21

Pallet: "module_homa_lite", Extrinsic: "set_total_staking_currency", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite TotalStakingCurrency (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 19
µs

Reads = 0
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 19
µs

Reads = 0
Writes = 1

Pallet: "module_homa_lite", Extrinsic: "adjust_total_staking_currency", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite TotalStakingCurrency (r:1 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 21.49
µs

Reads = 1
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 21.49
µs

Reads = 1
Writes = 1

Pallet: "module_homa_lite", Extrinsic: "set_minting_cap", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite StakingCurrencyMintCap (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 19.22
µs

Reads = 0
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 19.22
µs

Reads = 0
Writes = 1

Pallet: "module_homa_lite", Extrinsic: "set_xcm_dest_weight", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite XcmDestWeight (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 18.84
µs

Reads = 0
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 18.84
µs

Reads = 0
Writes = 1

Pallet: "module_homa_lite", Extrinsic: "request_redeem", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite TotalStakingCurrency (r:1 w:0)
Storage: Tokens TotalIssuance (r:1 w:1)
Storage: HomaLite RedeemRequests (r:1 w:1)
Storage: Tokens Accounts (r:1 w:1)
Storage: HomaLite AvailableStakingBalance (r:1 w:0)
Storage: EvmAccounts EvmAddresses (r:1 w:0)
Storage: EVM Accounts (r:1 w:0)
Storage: EvmAccounts Accounts (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 155.8
µs

Reads = 7
Writes = 4

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 155.8
µs

Reads = 7
Writes = 4

Pallet: "module_homa_lite", Extrinsic: "schedule_unbond", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite ScheduledUnbond (r:1 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 42.83
µs

Reads = 1
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 42.83
µs

Reads = 1
Writes = 1

Pallet: "module_homa_lite", Extrinsic: "replace_schedule_unbond", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite ScheduledUnbond (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 20.01
µs

Reads = 0
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 20.01
µs

Reads = 0
Writes = 1

@syan095
Copy link
Contributor Author

syan095 commented Oct 28, 2021

/bench runtime karura module_homa_lite

…hmarks --features=with-mandala-runtime -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=module_homa_lite --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./modules/homa-lite/src/weights.rs --template=./templates/module-weight-template.hbs
@ghost
Copy link

ghost commented Oct 28, 2021

Finished benchmark for branch: feature/homa-lite-periodic-update

Benchmark: Benchmark Runtime Module

cargo run --release --color=never --bin=acala --features=runtime-benchmarks --features=with-mandala-runtime -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=module_homa_lite --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./modules/homa-lite/src/weights.rs --template=./templates/module-weight-template.hbs

Results

Pallet: "module_homa_lite", Extrinsic: "on_idle", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite ScheduledUnbond (r:1 w:1)
Storage: ParachainSystem ValidationData (r:1 w:0)
Storage: ParachainInfo ParachainId (r:1 w:0)
Storage: HomaLite XcmDestWeight (r:1 w:0)
Storage: ParachainSystem HostConfiguration (r:1 w:0)
Storage: ParachainSystem PendingUpwardMessages (r:1 w:1)
Storage: HomaLite AvailableStakingBalance (r:1 w:1)
Storage: HomaLite RedeemRequests (r:4 w:3)
Storage: HomaLite TotalStakingCurrency (r:1 w:1)
Storage: Tokens TotalIssuance (r:2 w:2)
Storage: Tokens Accounts (r:6 w:6)
Storage: System Account (r:3 w:3)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 469.4
µs

Reads = 23
Writes = 18

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 469.4
µs

Reads = 23
Writes = 18

Pallet: "module_homa_lite", Extrinsic: "on_initialize", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite TotalStakingCurrency (r:1 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 20.9
µs

Reads = 1
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 20.9
µs

Reads = 1
Writes = 1

Pallet: "module_homa_lite", Extrinsic: "mint", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: Tokens Accounts (r:2 w:2)
Storage: HomaLite TotalStakingCurrency (r:1 w:1)
Storage: Tokens TotalIssuance (r:2 w:2)
Storage: HomaLite RedeemRequests (r:1 w:0)
Storage: HomaLite StakingCurrencyMintCap (r:1 w:0)
Storage: ParachainInfo ParachainId (r:1 w:0)
Storage: HomaLite XcmDestWeight (r:1 w:0)
Storage: UnknownTokens ConcreteFungibleBalances (r:1 w:0)
Storage: EvmAccounts EvmAddresses (r:1 w:0)
Storage: EVM Accounts (r:1 w:0)
Storage: ParachainSystem HostConfiguration (r:1 w:0)
Storage: ParachainSystem PendingUpwardMessages (r:1 w:1)
Storage: EvmAccounts Accounts (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 252.3
µs

Reads = 14
Writes = 7

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 252.3
µs

Reads = 14
Writes = 7

Pallet: "module_homa_lite", Extrinsic: "mint_for_requests", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: Tokens Accounts (r:8 w:8)
Storage: HomaLite TotalStakingCurrency (r:1 w:1)
Storage: Tokens TotalIssuance (r:2 w:2)
Storage: HomaLite RedeemRequests (r:4 w:3)
Storage: System Account (r:3 w:3)
Storage: EvmAccounts EvmAddresses (r:3 w:0)
Storage: EVM Accounts (r:3 w:0)
Storage: HomaLite StakingCurrencyMintCap (r:1 w:0)
Storage: ParachainInfo ParachainId (r:1 w:0)
Storage: HomaLite XcmDestWeight (r:1 w:0)
Storage: UnknownTokens ConcreteFungibleBalances (r:1 w:0)
Storage: ParachainSystem HostConfiguration (r:1 w:0)
Storage: ParachainSystem PendingUpwardMessages (r:1 w:1)
Storage: EvmAccounts Accounts (r:0 w:3)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 631.4
µs

Reads = 30
Writes = 21

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 631.4
µs

Reads = 30
Writes = 21

Pallet: "module_homa_lite", Extrinsic: "set_total_staking_currency", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite TotalStakingCurrency (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 19.32
µs

Reads = 0
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 19.32
µs

Reads = 0
Writes = 1

Pallet: "module_homa_lite", Extrinsic: "adjust_total_staking_currency", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite TotalStakingCurrency (r:1 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 22.05
µs

Reads = 1
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 22.05
µs

Reads = 1
Writes = 1

Pallet: "module_homa_lite", Extrinsic: "set_minting_cap", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite StakingCurrencyMintCap (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 19.81
µs

Reads = 0
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 19.81
µs

Reads = 0
Writes = 1

Pallet: "module_homa_lite", Extrinsic: "set_xcm_dest_weight", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite XcmDestWeight (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 19
µs

Reads = 0
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 19
µs

Reads = 0
Writes = 1

Pallet: "module_homa_lite", Extrinsic: "request_redeem", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite TotalStakingCurrency (r:1 w:0)
Storage: Tokens TotalIssuance (r:1 w:1)
Storage: HomaLite RedeemRequests (r:1 w:1)
Storage: Tokens Accounts (r:1 w:1)
Storage: HomaLite AvailableStakingBalance (r:1 w:0)
Storage: EvmAccounts EvmAddresses (r:1 w:0)
Storage: EVM Accounts (r:1 w:0)
Storage: EvmAccounts Accounts (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 154.3
µs

Reads = 7
Writes = 4

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 154.3
µs

Reads = 7
Writes = 4

Pallet: "module_homa_lite", Extrinsic: "schedule_unbond", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite ScheduledUnbond (r:1 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 23.72
µs

Reads = 1
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 23.72
µs

Reads = 1
Writes = 1

Pallet: "module_homa_lite", Extrinsic: "replace_schedule_unbond", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite ScheduledUnbond (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 20.4
µs

Reads = 0
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 20.4
µs

Reads = 0
Writes = 1

@ghost
Copy link

ghost commented Oct 28, 2021

Finished benchmark for branch: feature/homa-lite-periodic-update

Benchmark: Benchmark Runtime Module

cargo run --release --color=never --bin=acala --features=runtime-benchmarks --features=with-mandala-runtime -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=module_homa_lite --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./modules/homa-lite/src/weights.rs --template=./templates/module-weight-template.hbs

Results

Pallet: "module_homa_lite", Extrinsic: "on_idle", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite ScheduledUnbond (r:1 w:1)
Storage: ParachainSystem ValidationData (r:1 w:0)
Storage: ParachainInfo ParachainId (r:1 w:0)
Storage: HomaLite XcmDestWeight (r:1 w:0)
Storage: ParachainSystem HostConfiguration (r:1 w:0)
Storage: ParachainSystem PendingUpwardMessages (r:1 w:1)
Storage: HomaLite AvailableStakingBalance (r:1 w:1)
Storage: HomaLite RedeemRequests (r:4 w:3)
Storage: HomaLite TotalStakingCurrency (r:1 w:1)
Storage: Tokens TotalIssuance (r:2 w:2)
Storage: Tokens Accounts (r:6 w:6)
Storage: System Account (r:3 w:3)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 463.7
µs

Reads = 23
Writes = 18

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 463.7
µs

Reads = 23
Writes = 18

Pallet: "module_homa_lite", Extrinsic: "on_initialize", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite TotalStakingCurrency (r:1 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 20.64
µs

Reads = 1
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 20.64
µs

Reads = 1
Writes = 1

Pallet: "module_homa_lite", Extrinsic: "mint", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: Tokens Accounts (r:2 w:2)
Storage: HomaLite TotalStakingCurrency (r:1 w:1)
Storage: Tokens TotalIssuance (r:2 w:2)
Storage: HomaLite RedeemRequests (r:1 w:0)
Storage: HomaLite StakingCurrencyMintCap (r:1 w:0)
Storage: ParachainInfo ParachainId (r:1 w:0)
Storage: HomaLite XcmDestWeight (r:1 w:0)
Storage: UnknownTokens ConcreteFungibleBalances (r:1 w:0)
Storage: EvmAccounts EvmAddresses (r:1 w:0)
Storage: EVM Accounts (r:1 w:0)
Storage: ParachainSystem HostConfiguration (r:1 w:0)
Storage: ParachainSystem PendingUpwardMessages (r:1 w:1)
Storage: EvmAccounts Accounts (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 249.5
µs

Reads = 14
Writes = 7

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 249.5
µs

Reads = 14
Writes = 7

Pallet: "module_homa_lite", Extrinsic: "mint_for_requests", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: Tokens Accounts (r:8 w:8)
Storage: HomaLite TotalStakingCurrency (r:1 w:1)
Storage: Tokens TotalIssuance (r:2 w:2)
Storage: HomaLite RedeemRequests (r:4 w:3)
Storage: System Account (r:3 w:3)
Storage: EvmAccounts EvmAddresses (r:3 w:0)
Storage: EVM Accounts (r:3 w:0)
Storage: HomaLite StakingCurrencyMintCap (r:1 w:0)
Storage: ParachainInfo ParachainId (r:1 w:0)
Storage: HomaLite XcmDestWeight (r:1 w:0)
Storage: UnknownTokens ConcreteFungibleBalances (r:1 w:0)
Storage: ParachainSystem HostConfiguration (r:1 w:0)
Storage: ParachainSystem PendingUpwardMessages (r:1 w:1)
Storage: EvmAccounts Accounts (r:0 w:3)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 628.8
µs

Reads = 30
Writes = 21

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 628.8
µs

Reads = 30
Writes = 21

Pallet: "module_homa_lite", Extrinsic: "set_total_staking_currency", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite TotalStakingCurrency (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 19.05
µs

Reads = 0
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 19.05
µs

Reads = 0
Writes = 1

Pallet: "module_homa_lite", Extrinsic: "adjust_total_staking_currency", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite TotalStakingCurrency (r:1 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 21.79
µs

Reads = 1
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 21.79
µs

Reads = 1
Writes = 1

Pallet: "module_homa_lite", Extrinsic: "set_minting_cap", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite StakingCurrencyMintCap (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 19.57
µs

Reads = 0
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 19.57
µs

Reads = 0
Writes = 1

Pallet: "module_homa_lite", Extrinsic: "set_xcm_dest_weight", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite XcmDestWeight (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 18.92
µs

Reads = 0
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 18.92
µs

Reads = 0
Writes = 1

Pallet: "module_homa_lite", Extrinsic: "request_redeem", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite TotalStakingCurrency (r:1 w:0)
Storage: Tokens TotalIssuance (r:1 w:1)
Storage: HomaLite RedeemRequests (r:1 w:1)
Storage: Tokens Accounts (r:1 w:1)
Storage: HomaLite AvailableStakingBalance (r:1 w:0)
Storage: EvmAccounts EvmAddresses (r:1 w:0)
Storage: EVM Accounts (r:1 w:0)
Storage: EvmAccounts Accounts (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 152.1
µs

Reads = 7
Writes = 4

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 152.1
µs

Reads = 7
Writes = 4

Pallet: "module_homa_lite", Extrinsic: "schedule_unbond", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite ScheduledUnbond (r:1 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 23.34
µs

Reads = 1
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 23.34
µs

Reads = 1
Writes = 1

Pallet: "module_homa_lite", Extrinsic: "replace_schedule_unbond", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite ScheduledUnbond (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 20.3
µs

Reads = 0
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 20.3
µs

Reads = 0
Writes = 1

Acala Benchmarking Bot added 2 commits October 28, 2021 00:40
…hmarks --features=with-mandala-runtime -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=module_homa_lite --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./modules/homa-lite/src/weights.rs --template=./templates/module-weight-template.hbs
…hmarks --features=with-mandala-runtime -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=module_homa_lite --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./modules/homa-lite/src/weights.rs --template=./templates/module-weight-template.hbs
@ghost
Copy link

ghost commented Oct 28, 2021

Finished benchmark for branch: feature/homa-lite-periodic-update

Benchmark: Benchmark Runtime Karura Module

cargo run --release --color=never --bin=acala --features=runtime-benchmarks --features=with-karura-runtime -- benchmark --chain=karura-dev --steps=50 --repeat=20 --pallet=module_homa_lite --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/karura/src/weights/

Results

Pallet: "module_homa_lite", Extrinsic: "on_idle", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite ScheduledUnbond (r:1 w:1)
Storage: ParachainSystem ValidationData (r:1 w:0)
Storage: ParachainInfo ParachainId (r:1 w:0)
Storage: HomaLite XcmDestWeight (r:1 w:0)
Storage: PolkadotXcm SupportedVersion (r:1 w:0)
Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1)
Storage: PolkadotXcm SafeXcmVersion (r:1 w:0)
Storage: ParachainSystem HostConfiguration (r:1 w:0)
Storage: ParachainSystem PendingUpwardMessages (r:1 w:1)
Storage: HomaLite AvailableStakingBalance (r:1 w:1)
Storage: HomaLite RedeemRequests (r:1 w:0)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 82.91
µs

Reads = 11
Writes = 4

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 82.91
µs

Reads = 11
Writes = 4

Pallet: "module_homa_lite", Extrinsic: "on_initialize", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite TotalStakingCurrency (r:1 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 21.23
µs

Reads = 1
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 21.23
µs

Reads = 1
Writes = 1

Pallet: "module_homa_lite", Extrinsic: "mint", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: Tokens Accounts (r:2 w:2)
Storage: HomaLite TotalStakingCurrency (r:1 w:1)
Storage: Tokens TotalIssuance (r:2 w:2)
Storage: HomaLite RedeemRequests (r:1 w:0)
Storage: HomaLite StakingCurrencyMintCap (r:1 w:0)
Storage: ParachainInfo ParachainId (r:1 w:0)
Storage: HomaLite XcmDestWeight (r:1 w:0)
Storage: UnknownTokens ConcreteFungibleBalances (r:1 w:0)
Storage: EvmAccounts EvmAddresses (r:1 w:0)
Storage: EVM Accounts (r:1 w:0)
Storage: PolkadotXcm SupportedVersion (r:1 w:0)
Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1)
Storage: PolkadotXcm SafeXcmVersion (r:1 w:0)
Storage: ParachainSystem HostConfiguration (r:1 w:0)
Storage: ParachainSystem PendingUpwardMessages (r:1 w:1)
Storage: EvmAccounts Accounts (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 304.3
µs

Reads = 17
Writes = 8

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 304.3
µs

Reads = 17
Writes = 8

Pallet: "module_homa_lite", Extrinsic: "mint_for_requests", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: Tokens Accounts (r:2 w:2)
Storage: HomaLite TotalStakingCurrency (r:1 w:1)
Storage: Tokens TotalIssuance (r:2 w:2)
Storage: HomaLite RedeemRequests (r:3 w:0)
Storage: HomaLite StakingCurrencyMintCap (r:1 w:0)
Storage: ParachainInfo ParachainId (r:1 w:0)
Storage: HomaLite XcmDestWeight (r:1 w:0)
Storage: UnknownTokens ConcreteFungibleBalances (r:1 w:0)
Storage: EvmAccounts EvmAddresses (r:1 w:0)
Storage: EVM Accounts (r:1 w:0)
Storage: PolkadotXcm SupportedVersion (r:1 w:0)
Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1)
Storage: PolkadotXcm SafeXcmVersion (r:1 w:0)
Storage: ParachainSystem HostConfiguration (r:1 w:0)
Storage: ParachainSystem PendingUpwardMessages (r:1 w:1)
Storage: EvmAccounts Accounts (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 319.4
µs

Reads = 19
Writes = 8

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 319.4
µs

Reads = 19
Writes = 8

Pallet: "module_homa_lite", Extrinsic: "set_total_staking_currency", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite TotalStakingCurrency (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 19.51
µs

Reads = 0
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 19.51
µs

Reads = 0
Writes = 1

Pallet: "module_homa_lite", Extrinsic: "adjust_total_staking_currency", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite TotalStakingCurrency (r:1 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 22.03
µs

Reads = 1
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 22.03
µs

Reads = 1
Writes = 1

Pallet: "module_homa_lite", Extrinsic: "set_minting_cap", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite StakingCurrencyMintCap (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 20.2
µs

Reads = 0
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 20.2
µs

Reads = 0
Writes = 1

Pallet: "module_homa_lite", Extrinsic: "set_xcm_dest_weight", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite XcmDestWeight (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 19.26
µs

Reads = 0
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 19.26
µs

Reads = 0
Writes = 1

Pallet: "module_homa_lite", Extrinsic: "request_redeem", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite TotalStakingCurrency (r:1 w:0)
Storage: Tokens TotalIssuance (r:1 w:1)
Storage: HomaLite RedeemRequests (r:1 w:1)
Storage: Tokens Accounts (r:1 w:1)
Storage: HomaLite AvailableStakingBalance (r:1 w:0)
Storage: EvmAccounts EvmAddresses (r:1 w:0)
Storage: EVM Accounts (r:1 w:0)
Storage: EvmAccounts Accounts (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 152.6
µs

Reads = 7
Writes = 4

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 152.6
µs

Reads = 7
Writes = 4

Pallet: "module_homa_lite", Extrinsic: "schedule_unbond", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite ScheduledUnbond (r:1 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 24.18
µs

Reads = 1
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 24.18
µs

Reads = 1
Writes = 1

Pallet: "module_homa_lite", Extrinsic: "replace_schedule_unbond", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite ScheduledUnbond (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 20.93
µs

Reads = 0
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 20.93
µs

Reads = 0
Writes = 1

…hmarks --features=with-karura-runtime -- benchmark --chain=karura-dev --steps=50 --repeat=20 --pallet=module_homa_lite --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/karura/src/weights/
@xlc xlc requested a review from ferrell-code October 28, 2021 01:29
@ferrell-code
Copy link
Contributor

lgtm, other than small nit

ferrell-code
ferrell-code previously approved these changes Oct 28, 2021
…ency is updated

Update unit tests
Changed StakingInterestRatePerUpdateSet from Config to storage, changeable via governance extrinsic calls.
@syan095
Copy link
Contributor Author

syan095 commented Oct 29, 2021

/bench runtime module module_homa_lite

@ghost
Copy link

ghost commented Oct 29, 2021

Finished benchmark for branch: feature/homa-lite-periodic-update

Benchmark: Benchmark Runtime Module

cargo run --release --color=never --bin=acala --features=runtime-benchmarks --features=with-mandala-runtime -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=module_homa_lite --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./modules/homa-lite/src/weights.rs --template=./templates/module-weight-template.hbs

Results

Pallet: "module_homa_lite", Extrinsic: "on_idle", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite ScheduledUnbond (r:1 w:0)
Storage: ParachainSystem ValidationData (r:1 w:0)
Storage: ParachainInfo ParachainId (r:1 w:0)
Storage: HomaLite XcmDestWeight (r:1 w:0)
Storage: ParachainSystem HostConfiguration (r:1 w:0)
Storage: ParachainSystem PendingUpwardMessages (r:1 w:0)
Storage: HomaLite AvailableStakingBalance (r:1 w:0)
Storage: HomaLite TotalStakingCurrency (r:1 w:0)
Storage: HomaLite RedeemRequests (r:2 w:0)
Storage: Tokens TotalIssuance (r:1 w:0)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 61.32
µs

Reads = 11
Writes = 0

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 61.32
µs

Reads = 11
Writes = 0

Pallet: "module_homa_lite", Extrinsic: "on_initialize", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite StakingInterestRatePerUpdate (r:1 w:0)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 3.34
µs

Reads = 1
Writes = 0

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 3.34
µs

Reads = 1
Writes = 0

Pallet: "module_homa_lite", Extrinsic: "mint", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: Tokens Accounts (r:2 w:2)
Storage: HomaLite TotalStakingCurrency (r:1 w:1)
Storage: Tokens TotalIssuance (r:2 w:2)
Storage: HomaLite RedeemRequests (r:1 w:0)
Storage: HomaLite StakingCurrencyMintCap (r:1 w:0)
Storage: ParachainInfo ParachainId (r:1 w:0)
Storage: HomaLite XcmDestWeight (r:1 w:0)
Storage: UnknownTokens ConcreteFungibleBalances (r:1 w:0)
Storage: EvmAccounts EvmAddresses (r:1 w:0)
Storage: EVM Accounts (r:1 w:0)
Storage: ParachainSystem HostConfiguration (r:1 w:0)
Storage: ParachainSystem PendingUpwardMessages (r:1 w:1)
Storage: EvmAccounts Accounts (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 245.2
µs

Reads = 14
Writes = 7

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 245.2
µs

Reads = 14
Writes = 7

Pallet: "module_homa_lite", Extrinsic: "mint_for_requests", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: Tokens Accounts (r:8 w:8)
Storage: HomaLite TotalStakingCurrency (r:1 w:1)
Storage: Tokens TotalIssuance (r:2 w:2)
Storage: HomaLite RedeemRequests (r:4 w:3)
Storage: System Account (r:3 w:3)
Storage: EvmAccounts EvmAddresses (r:3 w:0)
Storage: EVM Accounts (r:3 w:0)
Storage: HomaLite StakingCurrencyMintCap (r:1 w:0)
Storage: ParachainInfo ParachainId (r:1 w:0)
Storage: HomaLite XcmDestWeight (r:1 w:0)
Storage: UnknownTokens ConcreteFungibleBalances (r:1 w:0)
Storage: ParachainSystem HostConfiguration (r:1 w:0)
Storage: ParachainSystem PendingUpwardMessages (r:1 w:1)
Storage: EvmAccounts Accounts (r:0 w:3)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 602.6
µs

Reads = 30
Writes = 21

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 602.6
µs

Reads = 30
Writes = 21

Pallet: "module_homa_lite", Extrinsic: "set_total_staking_currency", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite TotalStakingCurrency (r:1 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 21.42
µs

Reads = 1
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 21.42
µs

Reads = 1
Writes = 1

Pallet: "module_homa_lite", Extrinsic: "adjust_total_staking_currency", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite TotalStakingCurrency (r:1 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 22.07
µs

Reads = 1
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 22.07
µs

Reads = 1
Writes = 1

Pallet: "module_homa_lite", Extrinsic: "set_minting_cap", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite StakingCurrencyMintCap (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 18.98
µs

Reads = 0
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 18.98
µs

Reads = 0
Writes = 1

Pallet: "module_homa_lite", Extrinsic: "set_xcm_dest_weight", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite XcmDestWeight (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 18.24
µs

Reads = 0
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 18.24
µs

Reads = 0
Writes = 1

Pallet: "module_homa_lite", Extrinsic: "request_redeem", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite TotalStakingCurrency (r:1 w:0)
Storage: Tokens TotalIssuance (r:1 w:1)
Storage: HomaLite RedeemRequests (r:1 w:1)
Storage: Tokens Accounts (r:1 w:1)
Storage: HomaLite AvailableStakingBalance (r:1 w:0)
Storage: EvmAccounts EvmAddresses (r:1 w:0)
Storage: EVM Accounts (r:1 w:0)
Storage: EvmAccounts Accounts (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 144.1
µs

Reads = 7
Writes = 4

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 144.1
µs

Reads = 7
Writes = 4

Pallet: "module_homa_lite", Extrinsic: "schedule_unbond", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite ScheduledUnbond (r:1 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 22.67
µs

Reads = 1
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 22.67
µs

Reads = 1
Writes = 1

Pallet: "module_homa_lite", Extrinsic: "replace_schedule_unbond", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite ScheduledUnbond (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 19.36
µs

Reads = 0
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 19.36
µs

Reads = 0
Writes = 1

Pallet: "module_homa_lite", Extrinsic: "set_staking_interest_rate_per_update", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite StakingInterestRatePerUpdate (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 17.81
µs

Reads = 0
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 17.81
µs

Reads = 0
Writes = 1

Acala Benchmarking Bot added 2 commits October 29, 2021 05:12
…hmarks --features=with-mandala-runtime -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=module_homa_lite --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./modules/homa-lite/src/weights.rs --template=./templates/module-weight-template.hbs
@syan095
Copy link
Contributor Author

syan095 commented Oct 29, 2021

/bench runtime karura module_homa_lite

@ghost
Copy link

ghost commented Oct 29, 2021

Finished benchmark for branch: feature/homa-lite-periodic-update

Benchmark: Benchmark Runtime Karura Module

cargo run --release --color=never --bin=acala --features=runtime-benchmarks --features=with-karura-runtime -- benchmark --chain=karura-dev --steps=50 --repeat=20 --pallet=module_homa_lite --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/karura/src/weights/

Results

Pallet: "module_homa_lite", Extrinsic: "on_idle", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite ScheduledUnbond (r:1 w:1)
Storage: ParachainSystem ValidationData (r:1 w:0)
Storage: ParachainInfo ParachainId (r:1 w:0)
Storage: HomaLite XcmDestWeight (r:1 w:0)
Storage: PolkadotXcm SupportedVersion (r:1 w:0)
Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1)
Storage: PolkadotXcm SafeXcmVersion (r:1 w:0)
Storage: ParachainSystem HostConfiguration (r:1 w:0)
Storage: ParachainSystem PendingUpwardMessages (r:1 w:1)
Storage: HomaLite AvailableStakingBalance (r:1 w:1)
Storage: HomaLite TotalStakingCurrency (r:1 w:0)
Storage: HomaLite RedeemRequests (r:1 w:0)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 75.78
µs

Reads = 12
Writes = 4

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 75.78
µs

Reads = 12
Writes = 4

Pallet: "module_homa_lite", Extrinsic: "on_initialize", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite StakingInterestRatePerUpdate (r:1 w:0)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 5.959
µs

Reads = 1
Writes = 0

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 5.959
µs

Reads = 1
Writes = 0

Pallet: "module_homa_lite", Extrinsic: "mint", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: Tokens Accounts (r:2 w:2)
Storage: HomaLite TotalStakingCurrency (r:1 w:1)
Storage: Tokens TotalIssuance (r:2 w:2)
Storage: HomaLite RedeemRequests (r:1 w:0)
Storage: HomaLite StakingCurrencyMintCap (r:1 w:0)
Storage: ParachainInfo ParachainId (r:1 w:0)
Storage: HomaLite XcmDestWeight (r:1 w:0)
Storage: UnknownTokens ConcreteFungibleBalances (r:1 w:0)
Storage: EvmAccounts EvmAddresses (r:1 w:0)
Storage: EVM Accounts (r:1 w:0)
Storage: PolkadotXcm SupportedVersion (r:1 w:0)
Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1)
Storage: PolkadotXcm SafeXcmVersion (r:1 w:0)
Storage: ParachainSystem HostConfiguration (r:1 w:0)
Storage: ParachainSystem PendingUpwardMessages (r:1 w:1)
Storage: EvmAccounts Accounts (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 423.4
µs

Reads = 17
Writes = 8

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 423.4
µs

Reads = 17
Writes = 8

Pallet: "module_homa_lite", Extrinsic: "mint_for_requests", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: Tokens Accounts (r:2 w:2)
Storage: HomaLite TotalStakingCurrency (r:1 w:1)
Storage: Tokens TotalIssuance (r:2 w:2)
Storage: HomaLite RedeemRequests (r:3 w:0)
Storage: HomaLite StakingCurrencyMintCap (r:1 w:0)
Storage: ParachainInfo ParachainId (r:1 w:0)
Storage: HomaLite XcmDestWeight (r:1 w:0)
Storage: UnknownTokens ConcreteFungibleBalances (r:1 w:0)
Storage: EvmAccounts EvmAddresses (r:1 w:0)
Storage: EVM Accounts (r:1 w:0)
Storage: PolkadotXcm SupportedVersion (r:1 w:0)
Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1)
Storage: PolkadotXcm SafeXcmVersion (r:1 w:0)
Storage: ParachainSystem HostConfiguration (r:1 w:0)
Storage: ParachainSystem PendingUpwardMessages (r:1 w:1)
Storage: EvmAccounts Accounts (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 270.9
µs

Reads = 19
Writes = 8

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 270.9
µs

Reads = 19
Writes = 8

Pallet: "module_homa_lite", Extrinsic: "set_total_staking_currency", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite TotalStakingCurrency (r:1 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 20.86
µs

Reads = 1
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 20.86
µs

Reads = 1
Writes = 1

Pallet: "module_homa_lite", Extrinsic: "adjust_total_staking_currency", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite TotalStakingCurrency (r:1 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 21.76
µs

Reads = 1
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 21.76
µs

Reads = 1
Writes = 1

Pallet: "module_homa_lite", Extrinsic: "set_minting_cap", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite StakingCurrencyMintCap (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 18.64
µs

Reads = 0
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 18.64
µs

Reads = 0
Writes = 1

Pallet: "module_homa_lite", Extrinsic: "set_xcm_dest_weight", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite XcmDestWeight (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 18.04
µs

Reads = 0
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 18.04
µs

Reads = 0
Writes = 1

Pallet: "module_homa_lite", Extrinsic: "request_redeem", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite TotalStakingCurrency (r:1 w:0)
Storage: Tokens TotalIssuance (r:1 w:1)
Storage: HomaLite RedeemRequests (r:1 w:1)
Storage: Tokens Accounts (r:1 w:1)
Storage: HomaLite AvailableStakingBalance (r:1 w:0)
Storage: EvmAccounts EvmAddresses (r:1 w:0)
Storage: EVM Accounts (r:1 w:0)
Storage: EvmAccounts Accounts (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 137.9
µs

Reads = 7
Writes = 4

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 137.9
µs

Reads = 7
Writes = 4

Pallet: "module_homa_lite", Extrinsic: "schedule_unbond", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite ScheduledUnbond (r:1 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 22.34
µs

Reads = 1
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 22.34
µs

Reads = 1
Writes = 1

Pallet: "module_homa_lite", Extrinsic: "replace_schedule_unbond", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite ScheduledUnbond (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 19.46
µs

Reads = 0
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 19.46
µs

Reads = 0
Writes = 1

Pallet: "module_homa_lite", Extrinsic: "set_staking_interest_rate_per_update", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: HomaLite StakingInterestRatePerUpdate (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 17.71
µs

Reads = 0
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 17.71
µs

Reads = 0
Writes = 1

…hmarks --features=with-karura-runtime -- benchmark --chain=karura-dev --steps=50 --repeat=20 --pallet=module_homa_lite --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/karura/src/weights/
Roy Yang added 7 commits November 1, 2021 10:35
…eriodic-update

* origin/master:
  add mandala publish script
  Improve release note action (#1568)
  Update acala (#1564)
  Bench karura runtime (#1565)
  bump version (#1563)
  stale migrations (#1559)
  xcm barrier (#1560)
  udate action (#1551)
  update acala genesis config (#1554)

# Conflicts:
#	runtime/acala/src/weights/module_homa_lite.rs
#	runtime/karura/src/weights/module_homa_lite.rs
@syan095 syan095 requested review from ferrell-code and xlc November 1, 2021 21:44
Roy Yang added 4 commits November 3, 2021 01:31
Fixed benchmarking for on_initialize.
benchmarked the module and with all runtimes.
Updated unit test to test the right weight is returned from on_initialize
…etwork/Acala into feature/homa-lite-periodic-update

* 'feature/homa-lite-periodic-update' of github.com:AcalaNetwork/Acala:
  Update modules/homa-lite/src/lib.rs
…eriodic-update

* origin/master:
  Feature/add update available staking (#1514)
  Clean Dependencies (#1577)
  Disable xcm method (#1558)

# Conflicts:
#	modules/homa-lite/src/benchmarking.rs
#	modules/homa-lite/src/lib.rs
#	modules/homa-lite/src/tests.rs
#	modules/homa-lite/src/weights.rs
#	runtime/acala/src/weights/module_homa_lite.rs
#	runtime/karura/src/weights/module_homa_lite.rs
#	runtime/mandala/src/weights/module_homa_lite.rs
@xlc xlc merged commit 8e6d220 into master Nov 8, 2021
@xlc xlc deleted the feature/homa-lite-periodic-update branch November 8, 2021 00:13
syan095 pushed a commit that referenced this pull request Nov 8, 2021
* origin/master:
  Feature/homa lite periodic update (#1538)
  Fix/repatriate emit event (#1586)
  Update Dex Benchmaking (#1588)
  clear unused modules dependencies and rpc for runtimes (#1593)
  Idle schedule evm task (#1583)
  update acala genesis
  update devcontainer Dockerfile
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.

Add periodic TotalStakingCurrency update

4 participants