From a6a639003f0a016bf81d0a2f4f23a4e29774066c Mon Sep 17 00:00:00 2001 From: Sam Haves Date: Wed, 4 Feb 2026 10:34:43 -0800 Subject: [PATCH] Fix number of textures in BM_CompileManyTextures to 100. PiperOrigin-RevId: 865475996 Change-Id: I63fd1e8b9aaff9536a9609d8f8390f8c9473785e --- test/benchmark/parse_benchmark_test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/benchmark/parse_benchmark_test.cc b/test/benchmark/parse_benchmark_test.cc index 2752e713..73ebc1d5 100644 --- a/test/benchmark/parse_benchmark_test.cc +++ b/test/benchmark/parse_benchmark_test.cc @@ -102,7 +102,7 @@ void BM_CompileManyTextures(benchmark::State& state) { // Create a model with many textures std::string xml = "\n"; xml += " \n"; - for (int i = 0; i < state.range(0); ++i) { + for (int i = 0; i < 100; ++i) { xml += absl::StrFormat(" \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