-
Notifications
You must be signed in to change notification settings - Fork 128
fix(l1): improve import benchmark #5525
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
Conversation
This reverts commit dd3b4b0.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR improves the usability of the import benchmark tooling by fixing path handling issues and making the scripts more flexible.
- Modified
benchmark.shto output results totooling/import_benchmark/bench_resultsdirectory and correctly determine the next bench ID - Updated
parse_bench.pyto accept file paths directly as arguments instead of numeric ranges, making it more flexible and removing the unused numpy dependency - Updated documentation in README.md and Makefile to reflect the new command-line interface
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| tooling/import_benchmark/parse_bench.py | Refactored to accept file paths as arguments instead of numeric ranges; removed unused numpy import; improved code formatting |
| tooling/import_benchmark/benchmark.sh | Added logic to determine script directory, create bench_results directory, and output logs to the correct location |
| tooling/import_benchmark/README.md | Updated usage documentation to reflect new file path-based argument passing |
| tooling/import_benchmark/Makefile | Updated help text to document the new command-line interface for parse_bench.py |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Motivation
The import benchmark doesn't work out of the box, and has some quirks that can be easily fixed.
Description
This PR changes the
benchmark.shscript so it outputs results intotooling/import_benchmark/bench_results. It now also uses the correct directory to find the highest bench ID.Also, the Python script to parse results was difficult to use, since the results needed to be in the repo root; otherwise, it wouldn't work. Now it receives the file paths directly, which is more flexible and straightforward. Additionally, numpy was removed as a dependency, since it was unused.