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

Benchmark opt #1862

Merged
merged 4 commits into from
Feb 13, 2022
Merged

Benchmark opt #1862

merged 4 commits into from
Feb 13, 2022

Conversation

zqhxuyuan
Copy link
Contributor

@zqhxuyuan zqhxuyuan commented Feb 9, 2022

@zqhxuyuan zqhxuyuan marked this pull request as ready for review February 10, 2022 01:18
@zqhxuyuan
Copy link
Contributor Author

/bench runtime karura

@zqhxuyuan
Copy link
Contributor Author

/bench runtime karura module_transaction_payment

@zqhxuyuan zqhxuyuan requested review from xlc and shaunxw February 11, 2022 08:09
@xlc
Copy link
Member

xlc commented Feb 13, 2022

/bench runtime karura

@ghost
Copy link

ghost commented Feb 13, 2022

Error running benchmark: benchmark_opt

stdoutIncomplete command.

@xlc
Copy link
Member

xlc commented Feb 13, 2022

/bench runtime karura module_transaction_payment

@ghost
Copy link

ghost commented Feb 13, 2022

Finished benchmark for branch: benchmark_opt

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_transaction_payment --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/karura/src/weights/

Results

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

Storage: Balances Reserves (r:1 w:1)
Storage: TransactionPayment AlternativeFeeSwapPath (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 50.08
µs

Reads = 1
Writes = 2

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 50.08
µs

Reads = 1
Writes = 2

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

Storage: TransactionPayment PoolSize (r:1 w:0)
Storage: TransactionPayment SwapBalanceThreshold (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 22.49
µs

Reads = 1
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 22.49
µs

Reads = 1
Writes = 1

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

Storage: TransactionPayment PoolSize (r:1 w:1)
Storage: TransactionPayment AlternativeFeeSwapPath (r:1 w:0)
Storage: Dex TradingPairStatuses (r:1 w:0)
Storage: Dex LiquidityPool (r:1 w:0)
Storage: Tokens Accounts (r:2 w:2)
Storage: System Account (r:2 w:2)
Storage: TransactionPayment TokenExchangeRate (r:0 w:1)
Storage: TransactionPayment SwapBalanceThreshold (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 106.9
µs

Reads = 8
Writes = 7

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 106.9
µs

Reads = 8
Writes = 7

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

Storage: TransactionPayment NextFeeMultiplier (r:1 w:1)
Storage: System BlockWeight (r:1 w:0)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 12.2
µs

Reads = 2
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 12.2
µs

Reads = 2
Writes = 1

@shaunxw shaunxw merged commit f6b1830 into master Feb 13, 2022
@shaunxw shaunxw deleted the benchmark_opt branch February 13, 2022 21:45
syan095 pushed a commit that referenced this pull request Feb 15, 2022
…face

* origin/master:
  update coverage (#1889)
  update (#1879)
  Increase MinimumDebitValue (#1882)
  run coverage on self-hosted runner (#1883)
  Benchmark opt (#1862)
  tests trader (#1877)
  Update launch (#1876)
  Optimize collateral auction (#1823)
  fix master CI (#1870)
  Bump node-fetch from 2.6.1 to 2.6.7 in /launch (#1871)
  Bump simple-get from 2.8.1 to 2.8.2 in /ts-tests (#1872)
  Fix extrinsic ordering check action (#1867)
  fix ordering check
  update extrinsics ordering check
  fix build
  Avoid breaking change (#1866)

# Conflicts:
#	runtime/karura/src/lib.rs
syan095 pushed a commit that referenced this pull request Feb 16, 2022
…count

* origin/master: (24 commits)
  bump version (#1890)
  tokens rpc (#1873)
  rm upgrade (#1888)
  stable-asset (#1807)
  check swap path (#1887)
  update coverage (#1889)
  update (#1879)
  Increase MinimumDebitValue (#1882)
  run coverage on self-hosted runner (#1883)
  Benchmark opt (#1862)
  tests trader (#1877)
  Update launch (#1876)
  Optimize collateral auction (#1823)
  fix master CI (#1870)
  Bump node-fetch from 2.6.1 to 2.6.7 in /launch (#1871)
  Bump simple-get from 2.8.1 to 2.8.2 in /ts-tests (#1872)
  Fix extrinsic ordering check action (#1867)
  fix ordering check
  update extrinsics ordering check
  fix build
  ...

# Conflicts:
#	orml
#	runtime/integration-tests/src/payment.rs
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.

3 participants