Acala
Acala copied to clipboard
honzon distribution
closes: https://github.com/AcalaNetwork/Acala/issues/2254
/bench runtime mandala module_honzon_distribution
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
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.
/bench runtime mandala module_honzon_distribution
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
/bench runtime karura module_honzon_distribution
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