From 50e968a6e22b5665a98d3b3105832fd7701cf70f Mon Sep 17 00:00:00 2001 From: Kyle Bayes Date: Tue, 29 Aug 2023 05:51:58 -0700 Subject: [PATCH] Add particle.xml to benchmark tests. PiperOrigin-RevId: 561003057 Change-Id: I73094a135ae006eeb041fe55ebf3e998ebe6b3ab --- test/benchmark/step_benchmark_test.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/benchmark/step_benchmark_test.cc b/test/benchmark/step_benchmark_test.cc index ef022ed1..27088b69 100644 --- a/test/benchmark/step_benchmark_test.cc +++ b/test/benchmark/step_benchmark_test.cc @@ -86,6 +86,13 @@ void ABSL_ATTRIBUTE_NO_TAIL_CALL BM_StepCloth(benchmark::State& state) { } BENCHMARK(BM_StepCloth); +void ABSL_ATTRIBUTE_NO_TAIL_CALL BM_StepParticle(benchmark::State& state) { + MujocoErrorTestGuard guard; + static mjModel* model = LoadModelFromPath("composite/particle.xml"); + run_step_benchmark(model, state); +} +BENCHMARK(BM_StepParticle); + void ABSL_ATTRIBUTE_NO_TAIL_CALL BM_StepFlag(benchmark::State& state) { MujocoErrorTestGuard guard; static mjModel* model = LoadModelFromPath("flag/flag.xml");