-
Notifications
You must be signed in to change notification settings - Fork 602
Add script to fetch benchmark results for execuTorch #11734
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
Merged
Changes from 16 commits
Commits
Show all changes
55 commits
Select commit
Hold shift + click to select a range
3e8fa8f
final
yangw-dev 07896ea
final
yangw-dev 79f7788
final
yangw-dev 101d631
final
yangw-dev 83e76fe
final
yangw-dev 3b4047f
final
yangw-dev 1da3e87
final
yangw-dev 2f604a0
final
yangw-dev 9fa50a4
final
yangw-dev b56863d
final
yangw-dev b2ad5b6
final
yangw-dev 4aced24
final
yangw-dev ab6e6cf
final
yangw-dev 8e6956d
final
yangw-dev 87ba460
final
yangw-dev 5d22567
final
yangw-dev 7a032e1
final
yangw-dev d33ce72
final
yangw-dev 702478b
final
yangw-dev 03cff40
final
yangw-dev 44b792b
final
yangw-dev 37965f3
final
yangw-dev 908ee26
final
yangw-dev 4d30776
final
yangw-dev e27779e
final
yangw-dev f8ba103
final
yangw-dev 0fb1b2b
final
yangw-dev 2878e96
Merge branch 'main' into addScript
yangw-dev 04dbd97
final
yangw-dev 95b30a4
final
yangw-dev d22af04
fix error test
yangw-dev 25769da
fix error test
yangw-dev 48d9d34
Merge branch 'main' into addScript
yangw-dev 51b326a
fix error test
yangw-dev 13261da
fix error test
yangw-dev ffe6839
Merge branch 'main' into addScript
yangw-dev d7a6652
fix error test
yangw-dev 9182682
fix error test
yangw-dev 33de04f
fix error test
yangw-dev 68bf6f5
fix error test
yangw-dev 3c2cbd2
fix error test
yangw-dev 8de90bf
Merge branch 'main' into addScript
yangw-dev 990ff44
fix error test
yangw-dev ed48f5f
Merge branch 'main' into addScript
yangw-dev 99df0fe
fix error test
yangw-dev 7be520e
setup link
yangw-dev 600bb1a
setup link
yangw-dev 4c0fdd2
setup link
yangw-dev faa2012
setup link
yangw-dev 82c72eb
setup link
yangw-dev 9e2ee88
setup link
yangw-dev e97850b
Merge branch 'main' into addScript
yangw-dev 26dec1e
setup link
yangw-dev 12b4ed7
Merge branch 'main' into addScript
yangw-dev 1a3795e
setup link
yangw-dev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Benchmark Tooling | ||
|
||
A library providing tools for benchmarking ExecutorchBenchmark data. | ||
|
||
## Read Benchmark Data | ||
`get_benchmark_analysis_data.py` fetches benchmark data from HUD Open API and processes it, grouping metrics by private and public devices. | ||
|
||
### Quick Start | ||
|
||
Install dependencies: | ||
```bash | ||
pip install -r requirements.txt | ||
``` | ||
|
||
Run with default output (CLI): | ||
```bash | ||
python3 .ci/scripts/benchmark_tooling/get_benchmark_analysis_data.py --startTime "2025-06-11T00:00:00" --endTime "2025-06-17T18:00:00" | ||
``` | ||
|
||
Additional options: | ||
- `--silent`: Hide processing logs, show only results | ||
- `--outputType df`: Display results in DataFrame format | ||
- `--outputType excel --outputDir "{YOUR_LOCAL_DIRECTORY}"`: Generate Excel file with multiple sheets (`res_private.xlsx` and `res_public.xlsx`) | ||
- `--outputType csv --outputDir "{YOUR_LOCAL_DIRECTORY}"`: Generate CSV files in folders (`private` and `public`) | ||
|
||
|
||
### Python API Usage | ||
|
||
To use the benchmark fetcher in your own scripts: | ||
|
||
```python | ||
import ExecutorchBenchmarkFetcher from benchmark_tooling.get_benchmark_analysis_data | ||
fetcher = ExecutorchBenchmarkFetcher() | ||
# Must call run first | ||
fetcher.run() | ||
private, public = fetcher.to_df() | ||
``` | ||
|
||
## analyze_benchmark_stability.py | ||
`analyze_benchmark_stability.py` analyzes the stability of benchmark data, comparing the results of private and public devices. | ||
|
||
### Quick Start | ||
Install dependencies: | ||
```bash | ||
pip install -r requirements.txt | ||
``` | ||
|
||
``` | ||
python .ci/scripts/benchmark_tooling/analyze_benchmark_stability.py \ | ||
Benchmark\ Dataset\ with\ Private\ AWS\ Devices.xlsx \ | ||
--reference_file Benchmark\ Dataset\ with\ Public\ AWS\ Devices.xlsx | ||
``` |
Empty file.
File renamed without changes.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.