-
Notifications
You must be signed in to change notification settings - Fork 260
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
Updating performance writer #570
Conversation
- utilizes --storage-config-file with two examples - message reading from metadata yaml file (ready for cache double-buffers PR 546) - removed performance-affecting outputs - supports bag splitting in benchmarking Signed-off-by: Adam Dabrowski <[email protected]>
@mjeronimo this PR has some updates to benchmarking, could you take a 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.
Looks good to me. One minor grammatical mistake/typo.
rosbag2_performance/rosbag2_performance_writer_benchmarking/src/writer_benchmark.cpp
Outdated
Show resolved
Hide resolved
Signed-off-by: Adam Dabrowski <[email protected]>
Signed-off-by: Adam Dabrowski <[email protected]>
@mjeronimo shall we run CI and merge this if all turns out OK? |
I've changed how yaml is included in |
Background information on the pragmas added:
The class YAML::Node is exported in a DLL, but includes std C++ objects in its interface, such as: |
@emersonknapp Any comments before merging? |
@emersonknapp should we proceed to merge? (after resolving the conflict) |
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.
Yes, this LGTM after conflict resolution and green CI (the windows warnings are fixed now)
Signed-off-by: Adam Dabrowski <[email protected]>
…se it is empty (the default) Signed-off-by: Adam Dabrowski <[email protected]>
82d4f1b
to
95f1351
Compare
The conflicting commit, Compress bag files in separate threads, actually introduced some errors in rosbag2_performance_writer_benchmarking:
I have corrected these errors, however this also means that compression was likely not tested with the performance packages. @emersonknapp, @pjreed. This fact is not blocking this PR AFAIK. |
Good catch. I think that issue with the variable being overwritten was probably introduced as a result of merging to fix conflicts, as I'm pretty sure when I was doing performance testing that I observed compression running. Anyway, this change looks good to me. |
Signed-off-by: Adam Dabrowski <[email protected]>
The warning on MacOS is concerned with an unused private member that was added in #506 - and should have been causing warnings before - I don't know why this happens only now, perhaps a compiler update or some settings changed? Anyway, an easy fix (see this line). The windows fail is the usual Yaml stuff - should have known by now. Please note that the benchmarking package is not yet that usable on windows - the main utility script is not portable. @mjeronimo could we restart the CI and merge if it passes without issues? |
* Updating performance writer - utilizes --storage-config-file with two examples - message reading from metadata yaml file (ready for cache double-buffers PR 546) - removed performance-affecting outputs - supports bag splitting in benchmarking Signed-off-by: Adam Dabrowski <[email protected]> * typo fix Signed-off-by: Adam Dabrowski <[email protected]> * corrected compression so that it doesn't break the command line in case it is empty (the default) Signed-off-by: Adam Dabrowski <[email protected]> * address CI warns/fails on MacOS and Windows Signed-off-by: Adam Dabrowski <[email protected]>
* Updating performance writer - utilizes --storage-config-file with two examples - message reading from metadata yaml file (ready for cache double-buffers PR 546) - removed performance-affecting outputs - supports bag splitting in benchmarking Signed-off-by: Adam Dabrowski <[email protected]> * typo fix Signed-off-by: Adam Dabrowski <[email protected]> * corrected compression so that it doesn't break the command line in case it is empty (the default) Signed-off-by: Adam Dabrowski <[email protected]> * address CI warns/fails on MacOS and Windows Signed-off-by: Adam Dabrowski <[email protected]>
This is still the "clunky" script. While the refactoring of performance writer is scheduled, this PR contains several important updates that make the performance benchmarking packages usable with recent changes:
--storage-config-file
option with two examples (optimized and non-optimized). This enables testing of other pragma settings easily at will.This PR does not replace the necessary work to be done in performance packages (replacing the script with launch files, expanding parametrization), but still serves as a strict upgrade over the current state. Some of these changes should have been a part of earlier PRs.