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