[libcxx-commits] [libcxx] [libc++] Rename a few benchmarks to allow identifying what's being benchmarked from the name (PR #185747)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Mar 11 01:23:13 PDT 2026
================
@@ -52,11 +52,11 @@ static void BM_BasicLow(benchmark::State& state) {
for (auto value : data)
benchmark::DoNotOptimize(std::format_to(output.begin(), "{}", value));
}
-BENCHMARK(BM_BasicLow<__uint128_t>);
-BENCHMARK(BM_BasicLow<__int128_t>);
+BENCHMARK(BM_BasicLow<__uint128_t>)->Name("std::format(__uint128_t) (low)");
+BENCHMARK(BM_BasicLow<__int128_t>)->Name("std::format(__int128_t) (low)");
----------------
philnik777 wrote:
```suggestion
BENCHMARK(BM_BasicLow<__int128_t>)->Name("std::format(__int128_t) (lower 64 bits only)");
```
I was really confused what "low" means.
https://github.com/llvm/llvm-project/pull/185747
More information about the libcxx-commits
mailing list