-
Notifications
You must be signed in to change notification settings - Fork 101
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
Performance tests demo #288
Conversation
Signed-off-by: Jorge Perez <jjperez@ekumenlabs.com>
Signed-off-by: Jorge Perez <jjperez@ekumenlabs.com>
Signed-off-by: Jorge Perez <jjperez@ekumenlabs.com>
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 would be nice to integrate performance benchmark test. but for doing that, we should be able to have some criteria or threshold to decide if performance is not good enough? I think that most likely this performance check is gonna be useful to make sure if the staging PR does not affect the performance aspect. Could you share your thoughts about this kind of plan?
Signed-off-by: Jorge Perez <jjperez@ekumenlabs.com>
@fujitatomoya There is a pending discussion on #278 for this package, we will be discussing what's reasonable to test for each package in terms of performance and include checks on CI to be able of checking when a PR affects considerably performance to be considered before merging. |
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.
Does it make sense to add a new folder for the benchmark tests?
Signed-off-by: Jorge Perez <jjperez@ekumenlabs.com>
Signed-off-by: Jorge Perez <jjperez@ekumenlabs.com>
Signed-off-by: Jorge Perez <jjperez@ekumenlabs.com>
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.
I have two suggestions:
- call the target
benchmark_logging
instead ofbenchmark_test_logging
. I think is redundant somehow. - remove the word
test
from the filename. (test_benchmark_logging.cpp -> benchmark_logging.cpp)
Signed-off-by: Jorge Perez <jjperez@ekumenlabs.com>
@Blast545 What's the status of this one? Should we merge it? |
@clalancette I believe that rhe idea it's to create end-to-end performance tests instead of microbenchmarks. Maybe @chapulina can add more context here. |
Yes, the new plan is to create end-to-end tests. But it looks like this PR is already approved and close to getting in, so it would be a shame to throw it away. What's missing to merge it? |
Yeah, agreed. If this is almost ready to go, then I would say we get this in, but don't build any new micro-benchmarks. |
Signed-off-by: Jorge Perez <jjperez@ekumenlabs.com>
Testing performance test usage for
rcutils/error_handling.h
andrcutils/logging.h
.IMO it would be a good idea to combine coverage measurements to see which parts of the code are run with the performance tests, investigation pending.