Fix benchmark label for plugin flag test.
PiperOrigin-RevId: 572891541 Change-Id: I442e31f7e4164789759be0d2c71275fdb1398955
This commit is contained in:
committed by
Copybara-Service
parent
386b65086b
commit
6f8128dc6a
@@ -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
|
// separately in CPU profiles (and don't get replaced with raw calls to
|
||||||
// run_parse_benchmark).
|
// 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);
|
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) {
|
void ABSL_ATTRIBUTE_NO_TAIL_CALL BM_ParseFlag(benchmark::State& state) {
|
||||||
run_parse_benchmark(GetModelPath("../test/benchmark/testdata/flag.xml"),
|
run_parse_benchmark(GetModelPath("../test/benchmark/testdata/flag.xml"),
|
||||||
|
|||||||
@@ -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
|
// separately in CPU profiles (and don't get replaced with raw calls to
|
||||||
// run_step_benchmark).
|
// 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;
|
MujocoErrorTestGuard guard;
|
||||||
static mjModel* model = LoadModelFromPath("plugin/elasticity/flag.xml");
|
static mjModel* model = LoadModelFromPath("plugin/elasticity/flag.xml");
|
||||||
run_step_benchmark(model, state);
|
run_step_benchmark(model, state);
|
||||||
}
|
}
|
||||||
BENCHMARK(BM_StepCable);
|
BENCHMARK(BM_StepFlagPlugin);
|
||||||
|
|
||||||
void ABSL_ATTRIBUTE_NO_TAIL_CALL BM_StepParticle(benchmark::State& state) {
|
void ABSL_ATTRIBUTE_NO_TAIL_CALL BM_StepParticle(benchmark::State& state) {
|
||||||
MujocoErrorTestGuard guard;
|
MujocoErrorTestGuard guard;
|
||||||
|
|||||||
Reference in New Issue
Block a user