Fix number of textures in BM_CompileManyTextures to 100.

PiperOrigin-RevId: 865475996
Change-Id: I63fd1e8b9aaff9536a9609d8f8390f8c9473785e
This commit is contained in:
Sam Haves
2026-02-04 10:34:43 -08:00
committed by Copybara-Service
parent d07f39b4a0
commit a6a639003f
+2 -2
View File
@@ -102,7 +102,7 @@ void BM_CompileManyTextures(benchmark::State& state) {
// Create a model with many textures
std::string xml = "<mujoco>\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",
i, texture_path);
}
@@ -128,7 +128,7 @@ void BM_CompileManyTextures(benchmark::State& state) {
mj_setCacheCapacity(cache, old_capacity);
}
BENCHMARK(BM_CompileManyTextures)->Range(10, 100);
BENCHMARK(BM_CompileManyTextures);
} // namespace