Add flag benchmark.
PiperOrigin-RevId: 487788256 Change-Id: Iefab760cafc0123368e5bcd4ec4a579b170f1aba
This commit is contained in:
committed by
Copybara-Service
parent
8df9d3c0a3
commit
ae29a22d55
@@ -54,6 +54,11 @@ void ABSL_ATTRIBUTE_NO_TAIL_CALL BM_ParseCloth(benchmark::State& state) {
|
|||||||
}
|
}
|
||||||
BENCHMARK(BM_ParseCloth);
|
BENCHMARK(BM_ParseCloth);
|
||||||
|
|
||||||
|
void ABSL_ATTRIBUTE_NO_TAIL_CALL BM_ParseFlag(benchmark::State& state) {
|
||||||
|
run_parse_benchmark("flag/flag.xml", state);
|
||||||
|
}
|
||||||
|
BENCHMARK(BM_ParseFlag);
|
||||||
|
|
||||||
void ABSL_ATTRIBUTE_NO_TAIL_CALL BM_ParseHumanoid(benchmark::State& state) {
|
void ABSL_ATTRIBUTE_NO_TAIL_CALL BM_ParseHumanoid(benchmark::State& state) {
|
||||||
run_parse_benchmark("humanoid/humanoid.xml", state);
|
run_parse_benchmark("humanoid/humanoid.xml", state);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -82,6 +82,13 @@ void ABSL_ATTRIBUTE_NO_TAIL_CALL BM_StepCloth(benchmark::State& state) {
|
|||||||
}
|
}
|
||||||
BENCHMARK(BM_StepCloth);
|
BENCHMARK(BM_StepCloth);
|
||||||
|
|
||||||
|
void ABSL_ATTRIBUTE_NO_TAIL_CALL BM_StepFlag(benchmark::State& state) {
|
||||||
|
MujocoErrorTestGuard guard;
|
||||||
|
static mjModel* model = LoadModelFromPath("flag/flag.xml");
|
||||||
|
run_step_benchmark(model, state);
|
||||||
|
}
|
||||||
|
BENCHMARK(BM_StepFlag);
|
||||||
|
|
||||||
void ABSL_ATTRIBUTE_NO_TAIL_CALL BM_StepHumanoid(benchmark::State& state) {
|
void ABSL_ATTRIBUTE_NO_TAIL_CALL BM_StepHumanoid(benchmark::State& state) {
|
||||||
MujocoErrorTestGuard guard;
|
MujocoErrorTestGuard guard;
|
||||||
static mjModel* model = LoadModelFromPath("humanoid/humanoid.xml");
|
static mjModel* model = LoadModelFromPath("humanoid/humanoid.xml");
|
||||||
|
|||||||
Reference in New Issue
Block a user