-
Couldn't load subscription status.
- Fork 794
[Benchmarks] Benchmarks scripts cleanup #20460
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
base: sycl
Are you sure you want to change the base?
Conversation
|
@lslusarczyk, @lukaszstolarczuk, Is the |
Improve readability: - group methods and attributes into public, protected (underscore prefix) and private (double underscore prefix) - order public methods to align with their order in the base Benchmark class
|
|
||
| def description(self) -> str: | ||
| return "" | ||
|
|
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.
in general I like this cleanup, but I guess we may quickly forget about this "new order" - perhaps add "sections", e.g. put a comment here. Just an idea - please do as you think.
#
## Protected functions
#
|
|
||
| def description(self) -> str: | ||
| return "" | ||
|
|
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.
perhaps also, describe this shortly in our contrib guide...?
| ## Adding New Benchmarks | ||
|
|
||
| 1. **Create Benchmark Class:** Implement a new class inheriting from `benches.base.Benchmark`. Implement required methods (`setup`, `run`, `teardown`, `name`) and optional ones (`description`, `get_tags`, etc.) as needed. | ||
| 1. **Create Benchmark Class:** Implement a new class inheriting from `benches.base.Benchmark`. Implement required methods (`run`, `name`) and optional ones (`description`, `get_tags`, etc.) as needed. |
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.
setup() is mentioned above as required method
No description provided.