Skip to content

[EP Perf] Extension to post benchmark perf from local devices#24236

Merged
yf711 merged 6 commits intomainfrom
yifanl/ep_perf_ext
Apr 9, 2025
Merged

[EP Perf] Extension to post benchmark perf from local devices#24236
yf711 merged 6 commits intomainfrom
yifanl/ep_perf_ext

Conversation

@yf711
Copy link
Contributor

@yf711 yf711 commented Mar 28, 2025

Description

This script can upload local perf log/csv to DB, which can be used as EP Perf Dashboard external data source.
(Make sure the csv/log-parsing logic match the targeting DB table's schema )

Usage:

  • To post csv to db:
    python parse_post_perf.py --kusto-table="<table_name>" --kusto-conn="<db_link>" --kusto-db="<dashboard_xyz>" --upload-csv="<path\to\data.csv>"
  • To parse log from mobile perf log and post to db:
    python parse_post_perf.py --kusto-table="<table_name>" --kusto-conn="<db_link>" --kusto-db="<dashboard_xyz>" --parse_mobile_perf --log-file="<path/to/mobile_model_benchmark.log>" --model="<model_name>" --device-id="<device_name>" --commit-id="<ort_commit_id>" --ep="<test_backend>"

Motivation and Context

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can commit the suggested changes from lintrunner.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can commit the suggested changes from lintrunner.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can commit the suggested changes from lintrunner.

@yf711 yf711 marked this pull request as ready for review April 7, 2025 18:41
@yf711 yf711 requested a review from vraspar April 7, 2025 18:42
Copy link
Contributor

@vraspar vraspar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Looks good to me.

@yf711 yf711 merged commit 6ba73a1 into main Apr 9, 2025
87 of 89 checks passed
@yf711 yf711 deleted the yifanl/ep_perf_ext branch April 9, 2025 19:08
ashrit-ms pushed a commit that referenced this pull request Apr 24, 2025
### Description
<!-- Describe your changes. -->
This script can upload local perf log/csv to DB, which can be used as EP
Perf Dashboard external data source.
(Make sure the csv/log-parsing logic match the targeting DB table's
schema )

#### Usage:
* To post csv to db:
`python parse_post_perf.py --kusto-table="<table_name>"
--kusto-conn="<db_link>" --kusto-db="<dashboard_xyz>"
--upload-csv="<path\to\data.csv>"
`
* To parse log from mobile perf log and post to db:
`python parse_post_perf.py --kusto-table="<table_name>"
--kusto-conn="<db_link>" --kusto-db="<dashboard_xyz>"
--parse_mobile_perf --log-file="<path/to/mobile_model_benchmark.log>"
--model="<model_name>" --device-id="<device_name>"
--commit-id="<ort_commit_id>" --ep="<test_backend>"`

### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
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