Skip to content

Update Handlebars Templates#1688

Merged
xlc merged 4 commits intomasterfrom
fer-handlebars-fix
Dec 9, 2021
Merged

Update Handlebars Templates#1688
xlc merged 4 commits intomasterfrom
fer-handlebars-fix

Conversation

@ferrell-code
Copy link
Contributor

Handlebars templates render differently due to upstream changes

@ferrell-code
Copy link
Contributor Author

/bench runtime acala module_dex

@ghost
Copy link

ghost commented Dec 8, 2021

Finished benchmark for branch: fer-handlebars-fix

Benchmark: Benchmark Runtime Acala Module

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

Results

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

Storage: Dex TradingPairStatuses (r:1 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 25.64
µs

Reads = 1
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 25.64
µs

Reads = 1
Writes = 1

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

Storage: Dex TradingPairStatuses (r:1 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 26.42
µs

Reads = 1
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 26.42
µs

Reads = 1
Writes = 1

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

Storage: Dex TradingPairStatuses (r:1 w:1)
Storage: Tokens TotalIssuance (r:1 w:0)
Storage: Dex ProvisioningPool (r:1 w:0)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 37.11
µs

Reads = 3
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 37.11
µs

Reads = 3
Writes = 1

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

Storage: Dex TradingPairStatuses (r:1 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 12.67
µs

Reads = 1
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 12.67
µs

Reads = 1
Writes = 1

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

Storage: Dex TradingPairStatuses (r:1 w:1)
Storage: Tokens Accounts (r:1 w:1)
Storage: Tokens TotalIssuance (r:1 w:1)
Storage: System Account (r:1 w:1)
Storage: Dex LiquidityPool (r:1 w:1)
Storage: Dex InitialShareExchangeRates (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 83.97
µs

Reads = 5
Writes = 6

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 83.97
µs

Reads = 5
Writes = 6

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

Storage: Dex TradingPairStatuses (r:1 w:1)
Storage: Dex ProvisioningPool (r:1 w:1)
Storage: System Account (r:1 w:1)
Storage: Tokens Accounts (r:2 w:2)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 132.9
µs

Reads = 5
Writes = 5

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 132.9
µs

Reads = 5
Writes = 5

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

Storage: Dex TradingPairStatuses (r:1 w:0)
Storage: Dex ProvisioningPool (r:2 w:1)
Storage: Dex InitialShareExchangeRates (r:1 w:1)
Storage: Tokens Accounts (r:2 w:2)
Storage: System Account (r:1 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 114.4
µs

Reads = 7
Writes = 5

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 114.4
µs

Reads = 7
Writes = 5

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

Storage: Dex TradingPairStatuses (r:1 w:0)
Storage: Dex LiquidityPool (r:1 w:1)
Storage: Tokens TotalIssuance (r:1 w:1)
Storage: System Account (r:1 w:1)
Storage: Tokens Accounts (r:3 w:3)
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 ~= 193.3
µs

Reads = 9
Writes = 7

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 193.3
µs

Reads = 9
Writes = 7

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

Storage: Dex TradingPairStatuses (r:1 w:0)
Storage: Dex LiquidityPool (r:1 w:1)
Storage: Tokens TotalIssuance (r:1 w:1)
Storage: System Account (r:1 w:1)
Storage: Tokens Accounts (r:4 w:4)
Storage: EvmAccounts EvmAddresses (r:1 w:0)
Storage: EVM Accounts (r:1 w:0)
Storage: Rewards PoolInfos (r:1 w:1)
Storage: Rewards SharesAndWithdrawnRewards (r:1 w:1)
Storage: EvmAccounts Accounts (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 270.6
µs

Reads = 12
Writes = 10

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 270.6
µs

Reads = 12
Writes = 10

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

Storage: Dex LiquidityPool (r:1 w:1)
Storage: Tokens TotalIssuance (r:1 w:1)
Storage: Tokens Accounts (r:3 w:3)
Storage: System Account (r:1 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 169.1
µs

Reads = 6
Writes = 6

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 169.1
µs

Reads = 6
Writes = 6

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

Storage: Dex LiquidityPool (r:1 w:1)
Storage: Tokens TotalIssuance (r:1 w:1)
Storage: Rewards SharesAndWithdrawnRewards (r:1 w:1)
Storage: Tokens Accounts (r:4 w:4)
Storage: System Account (r:2 w:1)
Storage: Rewards PoolInfos (r:1 w:1)
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 ~= 293.9
µs

Reads = 12
Writes = 10

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 293.9
µs

Reads = 12
Writes = 10

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

Storage: Dex TradingPairStatuses (r:1 w:0)
Storage: Dex LiquidityPool (r:1 w:1)
Storage: System Account (r:1 w:1)
Storage: Tokens Accounts (r:2 w:2)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 96.74
+ u 18.29
µs

Reads = 1 + (2 * u)
Writes = 2 + (1 * u)

Min Squares Analysis

-- Extrinsic Time --

Data points distribution:
u mean µs sigma µs %
2 133.1 0.451 0.3%
3 152.4 1.61 1.0%
4 169.9 1.5 0.8%

Quality and confidence:
param error
u 0.315

Model:
Time ~= 96.67
+ u 18.39
µs

Reads = 1 + (2 * u)
Writes = 2 + (1 * u)

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

Storage: Dex TradingPairStatuses (r:1 w:0)
Storage: Dex LiquidityPool (r:1 w:1)
Storage: System Account (r:1 w:1)
Storage: Tokens Accounts (r:2 w:2)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 98.44
+ u 17.6
µs

Reads = 1 + (2 * u)
Writes = 2 + (1 * u)

Min Squares Analysis

-- Extrinsic Time --

Data points distribution:
u mean µs sigma µs %
2 133.3 0.313 0.2%
3 152.1 0.527 0.3%
4 168.4 0.402 0.2%

Quality and confidence:
param error
u 0.164

Model:
Time ~= 98.52
+ u 17.59
µs

Reads = 1 + (2 * u)
Writes = 2 + (1 * u)

Acala Benchmarking Bot added 2 commits December 8, 2021 20:42
…hmarks --features=with-acala-runtime -- benchmark --chain=acala-latest --steps=50 --repeat=20 --pallet=module_dex --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/acala/src/weights/
@ferrell-code
Copy link
Contributor Author

/bench module module_dex

@ferrell-code
Copy link
Contributor Author

/bench runtime module module_dex

@ferrell-code ferrell-code mentioned this pull request Dec 8, 2021
@ghost
Copy link

ghost commented Dec 8, 2021

Error running benchmark: fer-handlebars-fix

stdoutNode benchmarks only available on Substrate.

@ghost
Copy link

ghost commented Dec 8, 2021

Finished benchmark for branch: fer-handlebars-fix

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_dex --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./modules/dex/src/weights.rs --template=./templates/module-weight-template.hbs

Results

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

Storage: Dex TradingPairStatuses (r:1 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 24.72
µs

Reads = 1
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 24.72
µs

Reads = 1
Writes = 1

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

Storage: Dex TradingPairStatuses (r:1 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 24.89
µs

Reads = 1
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 24.89
µs

Reads = 1
Writes = 1

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

Storage: Dex TradingPairStatuses (r:1 w:1)
Storage: Tokens TotalIssuance (r:1 w:0)
Storage: Dex ProvisioningPool (r:1 w:0)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 37.61
µs

Reads = 3
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 37.61
µs

Reads = 3
Writes = 1

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

Storage: Dex TradingPairStatuses (r:1 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 11.8
µs

Reads = 1
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 11.8
µs

Reads = 1
Writes = 1

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

Storage: Dex TradingPairStatuses (r:1 w:1)
Storage: Tokens Accounts (r:1 w:1)
Storage: Tokens TotalIssuance (r:1 w:1)
Storage: System Account (r:1 w:1)
Storage: Dex LiquidityPool (r:1 w:1)
Storage: Dex InitialShareExchangeRates (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 78.61
µs

Reads = 5
Writes = 6

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 78.61
µs

Reads = 5
Writes = 6

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

Storage: Dex TradingPairStatuses (r:1 w:1)
Storage: Dex ProvisioningPool (r:1 w:1)
Storage: System Account (r:1 w:1)
Storage: Tokens Accounts (r:2 w:2)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 127.5
µs

Reads = 5
Writes = 5

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 127.5
µs

Reads = 5
Writes = 5

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

Storage: Dex TradingPairStatuses (r:1 w:0)
Storage: Dex ProvisioningPool (r:2 w:1)
Storage: Dex InitialShareExchangeRates (r:1 w:1)
Storage: Tokens Accounts (r:2 w:2)
Storage: System Account (r:1 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 105.7
µs

Reads = 7
Writes = 5

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 105.7
µs

Reads = 7
Writes = 5

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

Storage: Dex TradingPairStatuses (r:1 w:0)
Storage: Dex LiquidityPool (r:1 w:1)
Storage: Tokens TotalIssuance (r:1 w:1)
Storage: System Account (r:1 w:1)
Storage: Tokens Accounts (r:3 w:3)
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 ~= 184.9
µs

Reads = 9
Writes = 7

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 184.9
µs

Reads = 9
Writes = 7

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

Storage: Dex TradingPairStatuses (r:1 w:0)
Storage: Dex LiquidityPool (r:1 w:1)
Storage: Tokens TotalIssuance (r:1 w:1)
Storage: System Account (r:1 w:1)
Storage: Tokens Accounts (r:4 w:4)
Storage: EvmAccounts EvmAddresses (r:1 w:0)
Storage: EVM Accounts (r:1 w:0)
Storage: Rewards PoolInfos (r:1 w:1)
Storage: Rewards SharesAndWithdrawnRewards (r:1 w:1)
Storage: EvmAccounts Accounts (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 258.2
µs

Reads = 12
Writes = 10

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 258.2
µs

Reads = 12
Writes = 10

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

Storage: Dex LiquidityPool (r:1 w:1)
Storage: Tokens TotalIssuance (r:1 w:1)
Storage: Tokens Accounts (r:3 w:3)
Storage: System Account (r:1 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 158.4
µs

Reads = 6
Writes = 6

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 158.4
µs

Reads = 6
Writes = 6

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

Storage: Dex LiquidityPool (r:1 w:1)
Storage: Tokens TotalIssuance (r:1 w:1)
Storage: Rewards SharesAndWithdrawnRewards (r:1 w:1)
Storage: Tokens Accounts (r:4 w:4)
Storage: System Account (r:2 w:1)
Storage: Rewards PoolInfos (r:1 w:1)
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 ~= 277.2
µs

Reads = 12
Writes = 10

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 277.2
µs

Reads = 12
Writes = 10

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

Storage: Dex TradingPairStatuses (r:1 w:0)
Storage: Dex LiquidityPool (r:1 w:1)
Storage: System Account (r:1 w:1)
Storage: Tokens Accounts (r:2 w:2)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 93.97
+ u 15.97
µs

Reads = 1 + (2 * u)
Writes = 2 + (1 * u)

Min Squares Analysis

-- Extrinsic Time --

Data points distribution:
u mean µs sigma µs %
2 125.5 0.36 0.2%
3 142.3 0.325 0.2%
4 157.5 0.428 0.2%

Quality and confidence:
param error
u 0.117

Model:
Time ~= 93.79
+ u 16
µs

Reads = 1 + (2 * u)
Writes = 2 + (1 * u)

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

Storage: Dex TradingPairStatuses (r:1 w:0)
Storage: Dex LiquidityPool (r:1 w:1)
Storage: System Account (r:1 w:1)
Storage: Tokens Accounts (r:2 w:2)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 93.81
+ u 16.17
µs

Reads = 1 + (2 * u)
Writes = 2 + (1 * u)

Min Squares Analysis

-- Extrinsic Time --

Data points distribution:
u mean µs sigma µs %
2 125.4 0.406 0.3%
3 143.3 0.477 0.3%
4 157.5 0.57 0.3%

Quality and confidence:
param error
u 0.226

Model:
Time ~= 93.96
+ u 16.05
µs

Reads = 1 + (2 * u)
Writes = 2 + (1 * u)

…hmarks --features=with-mandala-runtime -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=module_dex --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./modules/dex/src/weights.rs --template=./templates/module-weight-template.hbs
@xlc xlc merged commit a657f2d into master Dec 9, 2021
@xlc xlc deleted the fer-handlebars-fix branch December 9, 2021 02:24
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.

2 participants