-
Notifications
You must be signed in to change notification settings - Fork 19
perf: increase default benchmark sizes for retrieval_core and graph_analytics #41
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,6 +37,12 @@ def main() -> int: | |
| ], | ||
| help="Run a single capability benchmark", | ||
| ) | ||
| bench_parser.add_argument( | ||
| "--size", | ||
| type=int, | ||
| default=None, | ||
| help="Override the default benchmark size" | ||
| ) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please show the demo for this
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Screenshot added in PR |
||
| subparsers.add_parser("regress", help="Run regression checks") | ||
| subparsers.add_parser("generate-baselines", help="Generate regression baselines") | ||
| snapshot_parser = subparsers.add_parser("snapshot", help="Create a performance/reliability snapshot") | ||
|
|
@@ -81,7 +87,7 @@ def main() -> int: | |
| command = args.command or "bench" | ||
|
|
||
| if command == "bench": | ||
| print(format_benchmarks(run_benchmarks(task=args.task))) | ||
| print(format_benchmarks(run_benchmarks(task=args.task,size=args.size))) | ||
| return 0 | ||
| if command == "regress": | ||
| print(format_regression(run_regression())) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,5 +6,5 @@ | |
| from ...tasks.compute_core import TASK_SPEC | ||
|
|
||
|
|
||
| def run() -> dict[str, Any]: | ||
| return benchmark_task(TASK_SPEC, seed=1_009) | ||
| def run(size: int | None = None) -> dict[str, Any]: | ||
| return benchmark_task(TASK_SPEC, seed=1_009,size=size) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. returning size=None? will that work?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, In the benchmark_task function I have added a conditional statement if size is none it defaults to default benchmark_size |
||
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.
Validate
--sizeas a positive integer.Line 42 currently accepts
0and negative values, which can produce invalid benchmark payload sizes.Proposed fix
🤖 Prompt for AI Agents