Skip to content

Commit 1b74b7f

Browse files
authored
[libc++] Rename bitset benchmark to be self-descriptive (#162139)
It's important for the name of each benchmark to fully describe the benchmark since we aggregate the results of all benchmarks in a single .lnt file for analysis.
1 parent 6dcdf27 commit 1b74b7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libcxx/test/benchmarks/bitset.bench.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,14 +103,14 @@ BENCHMARK(BM_BitsetToString<262144>)->Arg(50)->Name("BM_BitsetToString<262144>/U
103103
BENCHMARK(BM_BitsetToString<524288>)->Arg(50)->Name("BM_BitsetToString<524288>/Uniform (50%)");
104104
BENCHMARK(BM_BitsetToString<1048576>)->Arg(50)->Name("BM_BitsetToString<1048576>/Uniform (50%)"); // 1 << 20
105105

106-
static void BM_ctor_ull(benchmark::State& state) {
106+
static void BM_Bitset_ctor_ull(benchmark::State& state) {
107107
unsigned long long val = (1ULL << state.range(0)) - 1;
108108
for (auto _ : state) {
109109
std::bitset<128> b(val);
110110
benchmark::DoNotOptimize(b);
111111
}
112112
}
113113

114-
BENCHMARK(BM_ctor_ull)->DenseRange(1, 63);
114+
BENCHMARK(BM_Bitset_ctor_ull)->DenseRange(1, 63);
115115

116116
BENCHMARK_MAIN();

0 commit comments

Comments
 (0)