-
Notifications
You must be signed in to change notification settings - Fork 18
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
Added benchmark test to libstatistics_collector #57
Added benchmark test to libstatistics_collector #57
Conversation
a098fad
to
da06bed
Compare
Signed-off-by: ahcorde <ahcorde@gmail.com>
da06bed
to
d697493
Compare
Codecov Report
@@ Coverage Diff @@
## master #57 +/- ##
==========================================
- Coverage 25.43% 24.75% -0.69%
==========================================
Files 26 27 +1
Lines 798 820 +22
Branches 185 185
==========================================
Hits 203 203
- Misses 432 454 +22
Partials 163 163
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@ahcorde how can we verify that the performance tests are running as expected? |
To be able to run the benchmark tests you need to compile it with |
Can you show us the output from running them yourself? I'm guessing we won't see the results in the BuildFarm until merged, correct? |
you should see something like:
There is a specific job for running these benchmarks: http://build.ros2.org/view/Rci/job/Rci__benchmark_ubuntu_focal_amd64/ |
@ahcorde can you please address the CI failure? |
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
…ithub.com/ahcorde/libstatistics_collector into ahcorde/benchmark/libstatistics_collector
benchmark/benchmark_iterative.cpp
Outdated
} | ||
st.SetComplexityN(len); | ||
|
||
collector.ClearCurrentMeasurements(); |
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.
What is the purpose of this? The collector
is about to fall out of scope anyway.
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 hasn't been addressed yet. If there is a reason that it should be kept, just let me know.
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 was trying to use the API properly, anyhow I can remove it.
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.
Removed 6470775
CMakeLists.txt
Outdated
# Give cppcheck hints about macro definitions coming from outside this package | ||
get_target_property(ament_cmake_cppcheck_ADDITIONAL_INCLUDE_DIRS | ||
performance_test_fixture::performance_test_fixture INTERFACE_INCLUDE_DIRECTORIES) |
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.
You shouldn't need both this and the unknownMacro
suppression in the code. I don't care which approach is used, but I don't think both are appropriate.
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.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.
Thanks for iterating.
Signed-off-by: ahcorde <ahcorde@gmail.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.
A couple more changes, then I think this one is good to go.
Signed-off-by: ahcorde <ahcorde@gmail.com>
* Added benchmark test to libstatistics_collector Signed-off-by: ahcorde <ahcorde@gmail.com> * cppcheck supressed unknown macro warning - macos Signed-off-by: ahcorde <ahcorde@gmail.com> * Reset heap counters Signed-off-by: ahcorde <ahcorde@gmail.com> * Added feedback Signed-off-by: ahcorde <ahcorde@gmail.com> * Remove unknownMacro suppression from CMakeLists.txt Signed-off-by: ahcorde <ahcorde@gmail.com> * Added feedback Signed-off-by: ahcorde <ahcorde@gmail.com> * moved benchmark test to test/benchmark Signed-off-by: ahcorde <ahcorde@gmail.com> * Added feedback Signed-off-by: ahcorde <ahcorde@gmail.com> Co-authored-by: Devin Bonnie <47613035+dabonnie@users.noreply.github.com>
…#59) * Added benchmark test to libstatistics_collector (#57) * Added benchmark test to libstatistics_collector Signed-off-by: ahcorde <ahcorde@gmail.com> * cppcheck supressed unknown macro warning - macos Signed-off-by: ahcorde <ahcorde@gmail.com> * Reset heap counters Signed-off-by: ahcorde <ahcorde@gmail.com> * Added feedback Signed-off-by: ahcorde <ahcorde@gmail.com> * Remove unknownMacro suppression from CMakeLists.txt Signed-off-by: ahcorde <ahcorde@gmail.com> * Added feedback Signed-off-by: ahcorde <ahcorde@gmail.com> * moved benchmark test to test/benchmark Signed-off-by: ahcorde <ahcorde@gmail.com> * Added feedback Signed-off-by: ahcorde <ahcorde@gmail.com> Co-authored-by: Devin Bonnie <47613035+dabonnie@users.noreply.github.com> * Updated Github Actions Signed-off-by: ahcorde <ahcorde@gmail.com> Co-authored-by: Devin Bonnie <47613035+dabonnie@users.noreply.github.com>
The only performance-sensitive operations here are those that add measurements. Added benchmark test to
libstatistics_collector
:@cottsay
Signed-off-by: ahcorde ahcorde@gmail.com