-
Notifications
You must be signed in to change notification settings - Fork 41
Feat/max error rate #171
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
Open
markVaykhansky
wants to merge
29
commits into
main
Choose a base branch
from
feat/max-error-rate
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Feat/max error rate #171
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
b7638b0
wip // max error rate in scheduler
markVaykhansky 6059af1
wip
markVaykhansky 69a5c9e
Revert "wip"
markVaykhansky 7795d2c
Handle infinite datasets with constant rate
markVaykhansky 6d688f0
minor bug fixes
markVaykhansky ede651a
bugfix / last request not yielded
markVaykhansky a17117c
Add max error rate to readme, CLI & report
markVaykhansky 34cb6b6
make max_error_rate optional
markVaykhansky 6289c07
minor fixes
markVaykhansky d5ee018
reprot error rate bugfix
markVaykhansky ce13ef7
add current error rate log
markVaykhansky 9a68a76
remove todo
markVaykhansky 6dd313d
Fix tests
markVaykhansky 3697b30
Pre CR fixes
markVaykhansky 2fe64c7
CR Fixes
markVaykhansky b54ab14
Lint fixes
markVaykhansky b502c94
Lint fixes
markVaykhansky 332ef08
better var name
c2fd813
Type fixes, typos & bugfixes
markVaykhansky 4bda8cf
Remove spammy log + bugfix
markVaykhansky 4b857f1
Merge remote-tracking branch 'upstream/feat/max-error-rate' into feat…
markVaykhansky 0d89a39
Merge remote-tracking branch 'origin/main' into feat/max-error-rate
markVaykhansky 26319a5
Sleep interminetly
markVaykhansky 09925a4
Add missing error log
markVaykhansky fa56258
linting fixes
markVaykhansky 2889dce
Merge branch 'main' into feat/max-error-rate
markurtz 3361d2f
WIP CR Fixes
markVaykhansky c134f66
WIP
464ebe3
WIP
markVaykhansky 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
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
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
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
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 |
---|---|---|
|
@@ -90,6 +90,9 @@ class BenchmarkArgs(StandardBaseModel): | |
max_duration: Optional[float] = Field( | ||
description="The maximum duration in seconds to run this benchmark, if any." | ||
) | ||
max_error_rate: Optional[float] = Field( | ||
description="Maximum error rate after which a benchmark will stop." | ||
) | ||
warmup_number: Optional[int] = Field( | ||
description=( | ||
"The number of requests to run for the warmup phase of this benchmark, " | ||
|
@@ -213,6 +216,15 @@ class BenchmarkRunStats(StandardBaseModel): | |
"it was completed." | ||
) | ||
) | ||
error_rate: float = Field( | ||
description=( | ||
"The number of errored requests divided by the number " | ||
"of successful and errored requests. " | ||
"This can be higher than max_error_rate " | ||
"(if applicable) cause it does not take into " | ||
"account incomplete requests." | ||
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. I'm not following this point, the error rate we calculate and compare to should never include incomplete, right? 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. Correct |
||
) | ||
) | ||
|
||
|
||
class BenchmarkMetrics(StandardBaseModel): | ||
|
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
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
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
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
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
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
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.
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.
It seems that implementing this as a calculated field under the StatusBreakdown would make sense, but that would require some work in that class to start generating computed values based on the types (numerics, collections, and generics). Putting this note here in case you're interested in generalizing the solution a bit more, but not a blocker from my side