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

MESH-1916 Monthly 2022 12 #1387

Merged
merged 50 commits into from
Mar 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
d0bbe0d
Substrate monthly update.
Neopallium Nov 21, 2022
22db30e
Apply substrate monthly 2022-11 changes.
Neopallium Nov 21, 2022
5b84436
Apply more monthly 2022-11 changes.
Neopallium Nov 22, 2022
9196558
cargo fmt and update `clap`
Neopallium Nov 23, 2022
53f8c91
Fix no_std build errors.
Neopallium Nov 23, 2022
b468f5a
Fix benchmarks.
Neopallium Nov 23, 2022
87794d4
Fix compiling of tests.
Neopallium Nov 29, 2022
2279772
Fix staking & transaction-payment tests.
Neopallium Nov 29, 2022
7083b9a
Allow use of deprecated remove_prefix.
Neopallium Nov 29, 2022
388be6a
Fix benchmarks.
Neopallium Nov 30, 2022
2112d42
Cargo fmt
Neopallium Dec 12, 2022
8c47c11
Fixup.
Neopallium Dec 12, 2022
a3042be
FIXUP: Settlement weights.
Neopallium Dec 21, 2022
615010c
Fix issue with schedule weight limit.
Neopallium Dec 22, 2022
e436c3a
Fix contracts GAS_LIMIT to include a proof_size.
Neopallium Dec 22, 2022
fcf3db8
Fix expected bridge weights in tests.
Neopallium Dec 22, 2022
5983002
Add missing migrations.
Neopallium Jan 13, 2023
f685a41
Fixup: transaction payment RPC endpoints.
Neopallium Jan 16, 2023
89a3ef1
Apply commit
Neopallium Jan 17, 2023
f05a36d
Add more changes from Substrate balances pallet.
Neopallium Jan 17, 2023
9606142
Update benchmark weights template.
Neopallium Jan 18, 2023
e105b68
Update weights type name.
Neopallium Jan 18, 2023
5fd6957
Charge minimal fee if the caller is not authorized.
Neopallium Jan 18, 2023
9ac0276
Update weights.
Neopallium Jan 19, 2023
370e22a
Update weights in bridge tests.
Neopallium Jan 19, 2023
06d7bfe
Update Substrate crates.
Neopallium Jan 19, 2023
c65c9aa
Code cleanup in transaction-payment.
Neopallium Jan 20, 2023
e94e938
Fix issue with events in transaction-payment.
Neopallium Jan 20, 2023
3cd94ac
Update Substrate again.
Neopallium Jan 20, 2023
d73e1ee
Add missing RuntimeEvent.
Neopallium Jan 20, 2023
5fb034a
Apply commit https://github.com/paritytech/substrate/pull/12633
Neopallium Jan 20, 2023
0946aa7
Allow use of remove_prefix.
Neopallium Jan 20, 2023
9b287e3
Cargo fmt
Neopallium Jan 20, 2023
a46854a
Fix event count in tests.
Neopallium Jan 20, 2023
894eb84
Update to Substrate monthly 2022-12.
Neopallium Jan 23, 2023
a866335
Remove local parity-db patch
Neopallium Jan 23, 2023
6f10520
Fix issue with curve25519-dalek-ng
Neopallium Jan 23, 2023
4e650cb
Update Substrate again.
Neopallium Jan 24, 2023
31e069b
Re-run benchmarks with new template.
Neopallium Jan 26, 2023
76b9916
Fix bridge wieghts in tests.
Neopallium Jan 27, 2023
43064c1
Update substrate monthly.
Neopallium Feb 21, 2023
bd3d0a1
Apply Substrate changes to new NFT code.
Neopallium Mar 1, 2023
747222b
allow remove_prefix.
Neopallium Mar 1, 2023
7fb52fd
Fix timestamp in NFT tests.
Neopallium Mar 1, 2023
e0734c9
Merge branch 'develop' into monthly-2022-12
Neopallium Mar 14, 2023
b18bc0c
Fixup NFT rpc endpoints.
Neopallium Mar 14, 2023
77a1000
Bump sp-arithmetic to the correct version.
Neopallium Mar 15, 2023
faa6b13
Use published confidential identity crates.
Neopallium Mar 15, 2023
1abab39
Update to 5.4
adamdossa Mar 16, 2023
0e7e1f6
Update version in Cargo.lock
Neopallium Mar 16, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ jobs:
at: .
- run:
name: Run benchmarks
command: ./polymesh-benchmarks benchmark pallet -p=* -e=* -r 1 -s 1 --execution native --db-cache 512 --heap-pages=2048
command: ./polymesh-benchmarks benchmark pallet -p=* -e=* -r 1 -s 2 --execution wasm --wasm-execution compiled --db-cache 512 --heap-pages=4096
no_output_timeout: 1h
migration-tests:
docker:
Expand Down
1 change: 1 addition & 0 deletions .maintain/benchmarks_1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#./target/release/polymesh benchmark pallet -s 100 -r 5 -p=pallet_babe -e=* --heap-pages 4096 --db-cache 512 --execution wasm --wasm-execution compiled --output ./pallets/weights/src/ --template ./.maintain/frame-weight-template.hbs >> data.txt 2>> log.txt
./target/release/polymesh benchmark pallet -s 100 -r 5 -p=pallet_timestamp -e=* --heap-pages 4096 --db-cache 512 --execution wasm --wasm-execution compiled --output ./pallets/weights/src/ --template ./.maintain/frame-weight-template.hbs >> data.txt 2>> log.txt
./target/release/polymesh benchmark pallet -s 100 -r 5 -p=pallet_scheduler -e=* --heap-pages 4096 --db-cache 512 --execution wasm --wasm-execution compiled --output ./pallets/weights/src/ --template ./.maintain/frame-weight-template.hbs >> data.txt 2>> log.txt
./target/release/polymesh benchmark pallet -s 100 -r 5 -p=pallet_preimage -e=* --heap-pages 4096 --db-cache 512 --execution wasm --wasm-execution compiled --output ./pallets/weights/src/ --template ./.maintain/frame-weight-template.hbs >> data.txt 2>> log.txt
./target/release/polymesh benchmark pallet -s 100 -r 5 -p=pallet_indices -e=* --heap-pages 4096 --db-cache 512 --execution wasm --wasm-execution compiled --output ./pallets/weights/src/ --template ./.maintain/frame-weight-template.hbs >> data.txt 2>> log.txt
./target/release/polymesh benchmark pallet -s 100 -r 5 -p=pallet_corporate_actions -e=* --heap-pages 4096 --db-cache 512 --execution wasm --wasm-execution compiled --output ./pallets/weights/src/ --template ./.maintain/frame-weight-template.hbs >> data.txt 2>> log.txt
./target/release/polymesh benchmark pallet -s 100 -r 5 -p=pallet_asset -e=* --heap-pages 4096 --db-cache 512 --execution wasm --wasm-execution compiled --output ./pallets/weights/src/ --template ./.maintain/frame-weight-template.hbs >> data.txt 2>> log.txt
Expand Down
21 changes: 13 additions & 8 deletions .maintain/frame-weight-template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION {{version}}
//! DATE: {{date}}, STEPS: `{{cmd.steps}}`, REPEAT: {{cmd.repeat}}, LOW RANGE: `{{cmd.lowest_range_values}}`, HIGH RANGE: `{{cmd.highest_range_values}}`
//! EXECUTION: {{cmd.execution}}, WASM-EXECUTION: {{cmd.wasm_execution}}, CHAIN: {{cmd.chain}}, DB CACHE: {{cmd.db_cache}}
//! HOSTNAME: `{{hostname}}`, CPU: `{{cpuname}}`

// Executed Command:
{{#each args as |arg|~}}
Expand All @@ -32,33 +33,37 @@
use polymesh_runtime_common::{RocksDbWeight as DbWeight, Weight};

/// Weights for {{pallet}} using the Substrate node and recommended hardware.
pub struct WeightInfo;
impl {{pallet}}::WeightInfo for WeightInfo {
pub struct SubstrateWeight;
impl {{pallet}}::WeightInfo for SubstrateWeight {
{{#each benchmarks as |benchmark|}}
{{#each benchmark.comments as |comment|}}
// {{comment}}
{{/each}}
{{#each benchmark.component_ranges as |range|}}
/// The range of component `{{range.name}}` is `[{{range.min}}, {{range.max}}]`.
{{/each}}
fn {{benchmark.name~}}
(
{{~#each benchmark.components as |c| ~}}
{{~#if (not c.is_used)}}_{{/if}}{{c.name}}: u32, {{/each~}}
) -> Weight {
({{underscore benchmark.base_weight}} as Weight)
// Minimum execution time: {{underscore benchmark.min_execution_time}} nanoseconds.
Weight::from_ref_time({{underscore benchmark.base_weight}})
{{#each benchmark.component_weight as |cw|}}
// Standard Error: {{underscore cw.error}}
.saturating_add(({{underscore cw.slope}} as Weight).saturating_mul({{cw.name}} as Weight))
.saturating_add(Weight::from_ref_time({{underscore cw.slope}}).saturating_mul({{cw.name}}.into()))
{{/each}}
{{#if (ne benchmark.base_reads "0")}}
.saturating_add(DbWeight::get().reads({{benchmark.base_reads}} as Weight))
.saturating_add(DbWeight::get().reads({{benchmark.base_reads}}))
{{/if}}
{{#each benchmark.component_reads as |cr|}}
.saturating_add(DbWeight::get().reads(({{cr.slope}} as Weight).saturating_mul({{cr.name}} as Weight)))
.saturating_add(DbWeight::get().reads(({{cr.slope}}_u64).saturating_mul({{cr.name}}.into())))
{{/each}}
{{#if (ne benchmark.base_writes "0")}}
.saturating_add(DbWeight::get().writes({{benchmark.base_writes}} as Weight))
.saturating_add(DbWeight::get().writes({{benchmark.base_writes}}))
{{/if}}
{{#each benchmark.component_writes as |cw|}}
.saturating_add(DbWeight::get().writes(({{cw.slope}} as Weight).saturating_mul({{cw.name}} as Weight)))
.saturating_add(DbWeight::get().writes(({{cw.slope}}_u64).saturating_mul({{cw.name}}.into())))
{{/each}}
}
{{/each}}
Expand Down
Loading