Skip to content
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

Benchmark rclcpp_action action_client #1429

Merged
merged 2 commits into from
Oct 30, 2020

Conversation

brawner
Copy link
Contributor

@brawner brawner commented Oct 29, 2020

This PR adds benchmarks for the action client against a trivial fibonacci action server.

Example results

----------------------------------------------------------------------------------------------------------------------------
Benchmark                                                                  Time             CPU   Iterations UserCounters...
----------------------------------------------------------------------------------------------------------------------------
ActionClientPerformanceTest/construct_client_without_server           406986 ns       405404 ns         1895 heap_allocations=607.852
ActionClientPerformanceTest/construct_client_with_server              445265 ns       437031 ns         1442 heap_allocations=701.658
ActionClientPerformanceTest/destroy_client                            296199 ns       252146 ns         2873 heap_allocations=607.326
ActionClientPerformanceTest/async_send_goal_only                        9721 ns         6593 ns       111837 heap_allocations=6.99786
ActionClientPerformanceTest/async_send_goal_rejected                  153292 ns        54992 ns        12823 heap_allocations=64.799
ActionClientPerformanceTest/async_send_goal_get_accepted_response     633245 ns       486516 ns         2547 heap_allocations=110.916
ActionClientPerformanceTest/async_get_result                          455398 ns       309215 ns         5410 heap_allocations=183.366
ActionClientPerformanceTest/async_cancel_goal                         535698 ns       387064 ns         3465 heap_allocations=195.695
ActionClientPerformanceTest/async_cancel_all_goals                   1234952 ns      1079082 ns         1000 heap_allocations=1.19876k

Signed-off-by: Stephen Brawner brawner@gmail.com

Signed-off-by: Stephen Brawner <brawner@gmail.com>
@brawner brawner force-pushed the brawner/rclcpp_action-benchmark-client branch from af45c90 to b8ed500 Compare October 29, 2020 00:43
@brawner
Copy link
Contributor Author

brawner commented Oct 29, 2020

Building with benchmarks on. Testing --packages-select rclcpp_action

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

Copy link
Contributor

@ahcorde ahcorde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

01:57:02 	 12 - benchmark_action_client (Timeout)

Signed-off-by: Stephen Brawner <brawner@gmail.com>
@brawner
Copy link
Contributor Author

brawner commented Oct 29, 2020

Bumped timeout

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@brawner brawner merged commit 2309811 into master Oct 30, 2020
@delete-merged-branch delete-merged-branch bot deleted the brawner/rclcpp_action-benchmark-client branch October 30, 2020 17:40
brawner added a commit that referenced this pull request Nov 5, 2020
* Benchmark rclcpp_action action_client

Signed-off-by: Stephen Brawner <brawner@gmail.com>

* Bump timeout

Signed-off-by: Stephen Brawner <brawner@gmail.com>
brawner added a commit that referenced this pull request Nov 6, 2020
* Benchmark rclcpp_action action_client

Signed-off-by: Stephen Brawner <brawner@gmail.com>

* Bump timeout

Signed-off-by: Stephen Brawner <brawner@gmail.com>
brawner added a commit that referenced this pull request Nov 7, 2020
* Benchmark rclcpp_action action_client

Signed-off-by: Stephen Brawner <brawner@gmail.com>

* Bump timeout

Signed-off-by: Stephen Brawner <brawner@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants