-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
compact: Add benchmark for #4084 #4617
Conversation
ccc52e7
to
6363ef0
Compare
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.
This looks nice! Can you show an example run of the benchmark test?
Larger win for more blocks. |
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.
LGTM! cc @bwplotka @GiedriusS for another look.
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.
Awesome work! Just one suggestion. Let me know if it makes sense 👍
You got tricked by the GitHub UI 😂 could you add a DCO? Let's merge this |
6ebfa84
to
7c944e2
Compare
Could you please fix these imports? |
7c944e2
to
21fe4a1
Compare
Create a bucket that simulates (a non jittering) network RTT to be used for system like benchmarks. Signed-off-by: Holger Hans Peter Freyther <[email protected]>
Create a benchmark to show the benefit of adding concurrency to the no compaction mark filter. Set-up an in-memory bucket with a simulated (network) delay. In the future we can refactor this a bit more to test more/all filters. Fixes: thanos-io#4084 Signed-off-by: Holger Hans Peter Freyther <[email protected]>
Co-authored-by: Giedrius Statkevičius <[email protected]> Signed-off-by: Holger Hans Peter Freyther <[email protected]>
21fe4a1
to
569566d
Compare
* testing: Add a bucket that adds a delay for ops Create a bucket that simulates (a non jittering) network RTT to be used for system like benchmarks. Signed-off-by: Holger Hans Peter Freyther <[email protected]> * compact: Add benchmark for GatherNoCompactionMarkFilter Create a benchmark to show the benefit of adding concurrency to the no compaction mark filter. Set-up an in-memory bucket with a simulated (network) delay. In the future we can refactor this a bit more to test more/all filters. Fixes: thanos-io#4084 Signed-off-by: Holger Hans Peter Freyther <[email protected]> * Update pkg/compact/compact_test.go Co-authored-by: Giedrius Statkevičius <[email protected]> Signed-off-by: Holger Hans Peter Freyther <[email protected]> Co-authored-by: Giedrius Statkevičius <[email protected]>
Changes
Verification