[libcxx-commits] [libcxx] [libc++] Rename a few benchmarks to allow identifying what's being benchmarked from the name (PR #185747)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Wed Mar 11 04:14:25 PDT 2026


================
@@ -27,17 +27,17 @@ void BM_adjacent_full(benchmark::State& state) {
   }
 }
 
-BENCHMARK(BM_adjacent_full<2>);
-BENCHMARK(BM_adjacent_full<3>);
-BENCHMARK(BM_adjacent_full<4>);
-BENCHMARK(BM_adjacent_full<5>);
-BENCHMARK(BM_adjacent_full<6>);
-BENCHMARK(BM_adjacent_full<7>);
-BENCHMARK(BM_adjacent_full<8>);
-BENCHMARK(BM_adjacent_full<9>);
-BENCHMARK(BM_adjacent_full<10>);
-BENCHMARK(BM_adjacent_full<100>);
-BENCHMARK(BM_adjacent_full<1000>);
+BENCHMARK(BM_adjacent_full<2>)->Name("rng::adjacent_view::begin() (full, size 2)");
----------------
ldionne wrote:

Yes, that's better indeed!

https://github.com/llvm/llvm-project/pull/185747


More information about the libcxx-commits mailing list