Fix number of textures in BM_CompileManyTextures to 100.
PiperOrigin-RevId: 865475996 Change-Id: I63fd1e8b9aaff9536a9609d8f8390f8c9473785e
This commit is contained in:
committed by
Copybara-Service
parent
d07f39b4a0
commit
a6a639003f
@@ -102,7 +102,7 @@ void BM_CompileManyTextures(benchmark::State& state) {
|
|||||||
// Create a model with many textures
|
// Create a model with many textures
|
||||||
std::string xml = "<mujoco>\n";
|
std::string xml = "<mujoco>\n";
|
||||||
xml += " <asset>\n";
|
xml += " <asset>\n";
|
||||||
for (int i = 0; i < state.range(0); ++i) {
|
for (int i = 0; i < 100; ++i) {
|
||||||
xml += absl::StrFormat(" <texture name='tex%d' type='2d' file='%s'/>\n",
|
xml += absl::StrFormat(" <texture name='tex%d' type='2d' file='%s'/>\n",
|
||||||
i, texture_path);
|
i, texture_path);
|
||||||
}
|
}
|
||||||
@@ -128,7 +128,7 @@ void BM_CompileManyTextures(benchmark::State& state) {
|
|||||||
mj_setCacheCapacity(cache, old_capacity);
|
mj_setCacheCapacity(cache, old_capacity);
|
||||||
}
|
}
|
||||||
|
|
||||||
BENCHMARK(BM_CompileManyTextures)->Range(10, 100);
|
BENCHMARK(BM_CompileManyTextures);
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user