Fix benchmark label for plugin flag test.

PiperOrigin-RevId: 572891541
Change-Id: I442e31f7e4164789759be0d2c71275fdb1398955
This commit is contained in:
Alessio Quaglino
2023-10-12 06:52:17 -07:00
committed by Copybara-Service
parent 386b65086b
commit 6f8128dc6a
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -48,10 +48,10 @@ static void run_parse_benchmark(const std::string xml_path, benchmark::State& st
// separately in CPU profiles (and don't get replaced with raw calls to
// run_parse_benchmark).
void ABSL_ATTRIBUTE_NO_TAIL_CALL BM_ParseCable(benchmark::State& state) {
void ABSL_ATTRIBUTE_NO_TAIL_CALL BM_ParseFlagPlugin(benchmark::State& state) {
run_parse_benchmark(GetModelPath("plugin/elasticity/flag.xml"), state);
}
BENCHMARK(BM_ParseCable);
BENCHMARK(BM_ParseFlagPlugin);
void ABSL_ATTRIBUTE_NO_TAIL_CALL BM_ParseFlag(benchmark::State& state) {
run_parse_benchmark(GetModelPath("../test/benchmark/testdata/flag.xml"),
+2 -2
View File
@@ -77,12 +77,12 @@ static void run_step_benchmark(const mjModel* model, benchmark::State& state) {
// separately in CPU profiles (and don't get replaced with raw calls to
// run_step_benchmark).
void ABSL_ATTRIBUTE_NO_TAIL_CALL BM_StepCable(benchmark::State& state) {
void ABSL_ATTRIBUTE_NO_TAIL_CALL BM_StepFlagPlugin(benchmark::State& state) {
MujocoErrorTestGuard guard;
static mjModel* model = LoadModelFromPath("plugin/elasticity/flag.xml");
run_step_benchmark(model, state);
}
BENCHMARK(BM_StepCable);
BENCHMARK(BM_StepFlagPlugin);
void ABSL_ATTRIBUTE_NO_TAIL_CALL BM_StepParticle(benchmark::State& state) {
MujocoErrorTestGuard guard;