From 6f8128dc6ac853f1bd8da63e6e43e5d13141aeaf Mon Sep 17 00:00:00 2001 From: Alessio Quaglino Date: Thu, 12 Oct 2023 06:52:17 -0700 Subject: [PATCH] Fix benchmark label for plugin flag test. PiperOrigin-RevId: 572891541 Change-Id: I442e31f7e4164789759be0d2c71275fdb1398955 --- test/benchmark/parse_benchmark_test.cc | 4 ++-- test/benchmark/step_benchmark_test.cc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/benchmark/parse_benchmark_test.cc b/test/benchmark/parse_benchmark_test.cc index af793616..e528322b 100644 --- a/test/benchmark/parse_benchmark_test.cc +++ b/test/benchmark/parse_benchmark_test.cc @@ -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"), diff --git a/test/benchmark/step_benchmark_test.cc b/test/benchmark/step_benchmark_test.cc index 6a3d5e9e..1c369e84 100644 --- a/test/benchmark/step_benchmark_test.cc +++ b/test/benchmark/step_benchmark_test.cc @@ -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;