Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
polkadot-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
parity
Mirrored projects
polkadot-sdk
Commits
c86b6336
Unverified
Commit
c86b6336
authored
1 year ago
by
Oliver Tale-Yazdi
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Sort the benchmarks before listing them (#2026)
Signed-off-by:
Oliver Tale-Yazdi
<
oliver.tale-yazdi@parity.io
>
parent
b7a8532d
Branches
Branches containing commit
No related merge requests found
Pipeline
#404989
passed with stages
in 55 minutes and 47 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
substrate/utils/frame/benchmarking-cli/src/pallet/command.rs
+5
-1
5 additions, 1 deletion
substrate/utils/frame/benchmarking-cli/src/pallet/command.rs
with
5 additions
and
1 deletion
substrate/utils/frame/benchmarking-cli/src/pallet/command.rs
+
5
−
1
View file @
c86b6336
...
...
@@ -748,13 +748,17 @@ impl CliConfiguration for PalletCmd {
/// List the benchmarks available in the runtime, in a CSV friendly format.
fn
list_benchmark
(
benchmarks_to_run
:
Vec
<
(
mut
benchmarks_to_run
:
Vec
<
(
Vec
<
u8
>
,
Vec
<
u8
>
,
Vec
<
(
BenchmarkParameter
,
u32
,
u32
)
>
,
Vec
<
(
String
,
String
)
>
,
)
>
,
)
{
// Sort and de-dub by pallet and function name.
benchmarks_to_run
.sort_by
(|(
pa
,
sa
,
_
,
_
),
(
pb
,
sb
,
_
,
_
)|
(
pa
,
sa
)
.cmp
(
&
(
pb
,
sb
)));
benchmarks_to_run
.dedup_by
(|(
pa
,
sa
,
_
,
_
),
(
pb
,
sb
,
_
,
_
)|
(
pa
,
sa
)
==
(
pb
,
sb
));
println!
(
"pallet, benchmark"
);
for
(
pallet
,
extrinsic
,
_
,
_
)
in
benchmarks_to_run
{
println!
(
"{}, {}"
,
String
::
from_utf8_lossy
(
&
pallet
),
String
::
from_utf8_lossy
(
&
extrinsic
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment