Acala icon indicating copy to clipboard operation
Acala copied to clipboard

honzon distribution

Open zqhxuyuan opened this issue 1 year ago • 7 comments

closes: https://github.com/AcalaNetwork/Acala/issues/2254

zqhxuyuan avatar Aug 05 '22 00:08 zqhxuyuan

/bench runtime mandala module_honzon_distribution

zqhxuyuan avatar Aug 08 '22 00:08 zqhxuyuan

Benchmark Benchmark Runtime Mandala Module for branch "honzon-distribution" with command cargo run --quiet --profile=production --color=never --bin=acala --features=runtime-benchmarks --features=with-mandala-runtime -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=module_honzon_distribution --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/mandala/src/weights/

Toolchain: nightly-2022-05-15-x86_64-unknown-linux-gnu (default) rustc 1.62.0-nightly (70b3681bf 2022-05-14)

Results
Pallet: "module_honzon_distribution", Extrinsic: "update_params", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
Storage: HonzonDistribution DistributionDestinationParams (r:1 w:1)

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

Model:
Time ~=    17.43
              µs

Reads = 2
Writes = 2

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

Model:
Time ~=    17.43
              µs

Reads = 2
Writes = 2

Pallet: "module_honzon_distribution", Extrinsic: "force_adjust", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
Storage: HonzonDistribution DistributionDestinationParams (r:1 w:0)
Storage: StableAsset Pools (r:1 w:1)
Storage: HonzonDistribution DistributedBalance (r:1 w:1)
Storage: Tokens Accounts (r:5 w:4)
Storage: Tokens TotalIssuance (r:3 w:2)
Storage: System Account (r:1 w:1)
Storage: Homa TotalStakingBonded (r:1 w:0)
Storage: Homa ToBondPool (r:1 w:0)
Storage: Homa TotalVoidLiquid (r:1 w:0)
Storage: EvmAccounts EvmAddresses (r:1 w:0)
Storage: AssetRegistry AssetMetadatas (r:1 w:0)

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

Model:
Time ~=    183.8
              µs

Reads = 18
Writes = 10

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

Model:
Time ~=    183.8
              µs

Reads = 18
Writes = 10


ghost avatar Aug 08 '22 00:08 ghost

also need a remove_distrubution(dest) to remove the params and balance and withdraw everything

Added, This is also a case of capacity=0, except that params is removed.

zqhxuyuan avatar Aug 10 '22 13:08 zqhxuyuan

/bench runtime mandala module_honzon_distribution

zqhxuyuan avatar Aug 10 '22 15:08 zqhxuyuan

Benchmark Benchmark Runtime Mandala Module for branch "honzon-distribution" with command cargo run --quiet --profile=production --color=never --bin=acala --features=runtime-benchmarks --features=with-mandala-runtime -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=module_honzon_distribution --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/mandala/src/weights/

Toolchain: nightly-2022-05-15-x86_64-unknown-linux-gnu (default) rustc 1.62.0-nightly (70b3681bf 2022-05-14)

Results
Pallet: "module_honzon_distribution", Extrinsic: "update_params", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
Storage: HonzonDistribution DistributionDestinationParams (r:1 w:1)

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

Model:
Time ~=    17.11
              µs

Reads = 2
Writes = 2

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

Model:
Time ~=    17.11
              µs

Reads = 2
Writes = 2

Pallet: "module_honzon_distribution", Extrinsic: "force_adjust", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
Storage: HonzonDistribution DistributionDestinationParams (r:1 w:0)
Storage: StableAsset Pools (r:1 w:0)
Storage: HonzonDistribution DistributedBalance (r:1 w:1)

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

Model:
Time ~=    22.57
              µs

Reads = 4
Writes = 2

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

Model:
Time ~=    22.57
              µs

Reads = 4
Writes = 2

Pallet: "module_honzon_distribution", Extrinsic: "remove_distribution", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
Storage: HonzonDistribution DistributionDestinationParams (r:1 w:1)
Storage: StableAsset Pools (r:1 w:0)
Storage: HonzonDistribution DistributedBalance (r:1 w:1)

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

Model:
Time ~=    23.07
              µs

Reads = 4
Writes = 3

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

Model:
Time ~=    23.07
              µs

Reads = 4
Writes = 3


ghost avatar Aug 10 '22 15:08 ghost

/bench runtime karura module_honzon_distribution

zqhxuyuan avatar Aug 11 '22 01:08 zqhxuyuan

Benchmark Benchmark Runtime Karura Module for branch "honzon-distribution" with command cargo run --quiet --profile=production --color=never --bin=acala --features=runtime-benchmarks --features=with-karura-runtime --features=on-chain-release-build -- benchmark pallet --chain=karura-dev --steps=50 --repeat=20 --pallet=module_honzon_distribution --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/karura/src/weights/

Toolchain: nightly-2022-05-15-x86_64-unknown-linux-gnu (default) rustc 1.62.0-nightly (70b3681bf 2022-05-14)

Results
Pallet: "module_honzon_distribution", Extrinsic: "update_params", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
Storage: HonzonDistribution DistributionDestinationParams (r:1 w:1)

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

Model:
Time ~=    29.36
              µs

Reads = 2
Writes = 2

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

Model:
Time ~=    29.36
              µs

Reads = 2
Writes = 2

Pallet: "module_honzon_distribution", Extrinsic: "force_adjust", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
Storage: HonzonDistribution DistributionDestinationParams (r:1 w:0)
Storage: StableAsset Pools (r:1 w:0)
Storage: HonzonDistribution DistributedBalance (r:1 w:1)

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

Model:
Time ~=     21.5
              µs

Reads = 4
Writes = 2

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

Model:
Time ~=     21.5
              µs

Reads = 4
Writes = 2

Pallet: "module_honzon_distribution", Extrinsic: "remove_distribution", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
Storage: HonzonDistribution DistributionDestinationParams (r:1 w:1)
Storage: StableAsset Pools (r:1 w:0)
Storage: HonzonDistribution DistributedBalance (r:1 w:1)

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

Model:
Time ~=    22.42
              µs

Reads = 4
Writes = 3

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

Model:
Time ~=    22.42
              µs

Reads = 4
Writes = 3


ghost avatar Aug 11 '22 01:08 ghost