Add particle.xml to benchmark tests.

PiperOrigin-RevId: 561003057
Change-Id: I73094a135ae006eeb041fe55ebf3e998ebe6b3ab
This commit is contained in:
Kyle Bayes
2023-08-29 05:51:58 -07:00
committed by Copybara-Service
parent 5f3e22a45f
commit 50e968a6e2
+7
View File
@@ -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");