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

Update benchmarking macros #3934

Merged
merged 77 commits into from
Apr 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
a3ddd5e
Update benchmarking
pgherveou Apr 2, 2024
db22ac0
Fix tests
pgherveou Apr 2, 2024
d3a6ccb
PR doc
pgherveou Apr 2, 2024
03ba18e
fix staking benchmark
pgherveou Apr 2, 2024
31e7f4c
fix prdoc
pgherveou Apr 2, 2024
7b4d0c8
Add on_before_start closure
pgherveou Apr 2, 2024
a560470
Fix fix
pgherveou Apr 2, 2024
c92091b
fix comment
pgherveou Apr 2, 2024
d701524
fix
pgherveou Apr 2, 2024
f311681
fix
pgherveou Apr 2, 2024
e52c535
PR comment
pgherveou Apr 3, 2024
f8f14ce
nit
pgherveou Apr 3, 2024
9bf84f8
fix bug
pgherveou Apr 3, 2024
c98c102
Merge branch 'master' into pg/bench_update
pgherveou Apr 3, 2024
cd46b3f
nit
pgherveou Apr 3, 2024
7623c2a
Merge branch 'master' of https://github.com/paritytech/polkadot-sdk i…
Apr 3, 2024
aa523d6
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
Apr 3, 2024
57d6d62
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
Apr 3, 2024
86e8349
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
Apr 3, 2024
b8f79bb
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
Apr 3, 2024
c07f03e
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
Apr 3, 2024
bbd3969
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
Apr 3, 2024
fafc4f7
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
Apr 3, 2024
81b98f9
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
Apr 3, 2024
6af2ae4
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
Apr 3, 2024
e0cd224
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
Apr 3, 2024
ae2ad48
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
Apr 3, 2024
9fe72a1
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
Apr 3, 2024
30b417c
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
Apr 3, 2024
b73ce1a
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
Apr 3, 2024
bef9679
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
Apr 3, 2024
9a8c341
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
Apr 3, 2024
2aa4306
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
Apr 3, 2024
f2d6a65
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
Apr 3, 2024
f55563a
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
Apr 3, 2024
183537e
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
Apr 3, 2024
141982f
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
Apr 3, 2024
50c12d2
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
Apr 3, 2024
a16e8b5
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
Apr 3, 2024
e39d75d
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
Apr 3, 2024
1f22c66
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
Apr 3, 2024
5da51b2
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
Apr 3, 2024
23e41ef
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
Apr 3, 2024
a3ed19c
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
Apr 3, 2024
c11f98b
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
Apr 3, 2024
ab93a87
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
Apr 3, 2024
5aa62a8
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
Apr 3, 2024
a513333
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
Apr 3, 2024
b94810f
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
Apr 3, 2024
93b1050
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
Apr 3, 2024
a4472d7
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
Apr 3, 2024
6ee198d
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
Apr 3, 2024
038ab82
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
Apr 3, 2024
e3ce75b
fixes
pgherveou Apr 3, 2024
b85041b
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
Apr 3, 2024
3368aae
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
Apr 3, 2024
dd3406e
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
Apr 3, 2024
b9459bb
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
Apr 3, 2024
2172ac9
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
Apr 3, 2024
7f5c8bb
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
Apr 3, 2024
2ceaa1a
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
Apr 3, 2024
3c1ff83
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
Apr 3, 2024
96f8123
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
Apr 3, 2024
a7a0f64
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
Apr 3, 2024
3450dc9
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
Apr 3, 2024
5209cd7
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
Apr 3, 2024
d15781f
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
Apr 3, 2024
5d57d63
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
Apr 3, 2024
7d2cdf4
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
Apr 3, 2024
8448264
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
Apr 3, 2024
9197593
Ensure benchmark does not have forbidden variable names
pgherveou Apr 8, 2024
59c44a5
Merge branch 'master' into pg/bench_update
ggwpez Apr 8, 2024
e3bffd2
".git/.scripts/commands/bench-all/bench-all.sh" --target_dir=substrate
Apr 9, 2024
6823690
Merge branch 'master' into pg/bench_update
athei Apr 9, 2024
3c87518
Update constant
pgherveou Apr 9, 2024
253c2cf
Merge branch 'master' into pg/bench_update
pgherveou Apr 9, 2024
3575b22
Merge branch 'master' into pg/bench_update
pgherveou Apr 9, 2024
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 bridges/chains/chain-bridge-hub-rococo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,5 +107,5 @@ frame_support::parameter_types! {

/// Transaction fee that is paid at the Rococo BridgeHub for delivering single outbound message confirmation.
/// (initially was calculated by test `BridgeHubRococo::can_calculate_fee_for_complex_message_confirmation_transaction` + `33%`)
pub const BridgeHubRococoBaseConfirmationFeeInRocs: u128 = 5_380_829_647;
pub const BridgeHubRococoBaseConfirmationFeeInRocs: u128 = 5_380_901_781;
}
11 changes: 11 additions & 0 deletions prdoc/pr_3934.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
title: Update benchmarking macros

doc:
- audience: Runtime Dev
description: |
Current benchmarking macro return a closure with the captured benchmarked code.
This could cause compilation issues when the benchmarked code has complex lifetime requirements.
This PR updates the existing macro by injecting the recoding parameter and invoking the start / stop method around the benchmarked block instead of returning a closure

crates: []

1,033 changes: 520 additions & 513 deletions substrate/frame/alliance/src/weights.rs

Large diffs are not rendered by default.

126 changes: 65 additions & 61 deletions substrate/frame/asset-conversion/src/weights.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading