{"id":20099087,"url":"https://github.com/ros2/performance_test_fixture","last_synced_at":"2025-05-06T06:30:54.757Z","repository":{"id":40294241,"uuid":"280255235","full_name":"ros2/performance_test_fixture","owner":"ros2","description":"Test fixture and CMake macro for using osrf_testing_tools_cpp with Google Benchmark","archived":false,"fork":false,"pushed_at":"2024-09-06T19:25:30.000Z","size":61,"stargazers_count":7,"open_issues_count":3,"forks_count":3,"subscribers_count":19,"default_branch":"rolling","last_synced_at":"2024-09-06T22:57:30.697Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ros2.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.rst","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-16T20:48:51.000Z","updated_at":"2024-07-22T03:00:58.000Z","dependencies_parsed_at":"2024-04-26T17:46:29.276Z","dependency_job_id":"a270faef-5669-4e0c-ab67-b392e2eaa94b","html_url":"https://github.com/ros2/performance_test_fixture","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ros2%2Fperformance_test_fixture","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ros2%2Fperformance_test_fixture/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ros2%2Fperformance_test_fixture/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ros2%2Fperformance_test_fixture/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ros2","download_url":"https://codeload.github.com/ros2/performance_test_fixture/tar.gz/refs/heads/rolling","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224490709,"owners_count":17319983,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T17:08:07.208Z","updated_at":"2024-11-13T17:08:07.951Z","avatar_url":"https://github.com/ros2.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# performance_test_fixture\n\nThis repository contains the source code for the `performance_test_fixture` package.\n\n`performance_test_fixture` provides:\n1. A Google Benchmark fixture that leverages memory tools from `osrf_testing_tools_cpp` to record memory allocation statistics\n2. A CMake macro for compiling, linking, and configuring benchmarking runs, as well as automatically skipping the tests on platforms where the `osrf_testing_tools_cpp` memory tools are not supported\n\n## Usage\n\nThe test fixture can be used just like any other Google Benchmark fixture:\n```c++\n#include \u003cperformance_test_fixture/performance_test_fixture.hpp\u003e\n\nusing performance_test_fixture::PerformanceTest;\n\nBENCHMARK_F(PerformanceTest, example_test)(benchmark::State \u0026 st)\n{\n  ...\n}\n```\n\nThe CMake macro can be used in the same way as the rest of the `ament_cmake_test` family of macros:\n```cmake\n  find_package(performance_test_fixture REQUIRED)\n  add_performance_test(example_test test/example_test.cpp)\n```\n\nBecause it has a large impact on performance, trace messages coming from the memory tools in `osrf_testing_tools_cpp` are suppressed by default.\nTo enable memory operation trace logging, set the environment variable `PERFORMANCE_TEST_FIXTURE_ENABLE_TRACE=1`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fros2%2Fperformance_test_fixture","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fros2%2Fperformance_test_fixture","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fros2%2Fperformance_test_fixture/lists"}