[libcxx-commits] [libcxx] [libc++] Rename vector<bool> benchmarks for consistency with other vector benchmarks (PR #181178)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Thu Feb 12 08:40:12 PST 2026


https://github.com/ldionne created https://github.com/llvm/llvm-project/pull/181178

None

>From 03da34625f32233162aa42c1f5e6c3d86e63a25c Mon Sep 17 00:00:00 2001
From: Louis Dionne <ldionne.2 at gmail.com>
Date: Thu, 12 Feb 2026 11:38:19 -0500
Subject: [PATCH] [libc++] Rename vector<bool> benchmarks for consistency with
 other vector benchmarks

---
 .../containers/sequence/vector_bool.bench.cpp        | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/libcxx/test/benchmarks/containers/sequence/vector_bool.bench.cpp b/libcxx/test/benchmarks/containers/sequence/vector_bool.bench.cpp
index 1300c600f57ad..2930f881fda68 100644
--- a/libcxx/test/benchmarks/containers/sequence/vector_bool.bench.cpp
+++ b/libcxx/test/benchmarks/containers/sequence/vector_bool.bench.cpp
@@ -21,7 +21,7 @@ static void BM_vector_bool_copy_ctor(benchmark::State& state) {
     benchmark::DoNotOptimize(vec2);
   }
 }
-BENCHMARK(BM_vector_bool_copy_ctor)->Name("vector<bool>(const vector<bool>&)");
+BENCHMARK(BM_vector_bool_copy_ctor)->Name("std::vector<bool>::ctor(const&)");
 
 static void BM_vector_bool_move_ctor_alloc_equal(benchmark::State& state) {
   std::vector<bool> vec(100, true);
@@ -34,7 +34,7 @@ static void BM_vector_bool_move_ctor_alloc_equal(benchmark::State& state) {
   }
 }
 BENCHMARK(BM_vector_bool_move_ctor_alloc_equal)
-    ->Name("vector<bool>(vector<bool>&&, const allocator_type&) (equal allocators)");
+    ->Name("std::vector<bool>::ctor(vector<bool>&&, allocator) (equal allocators)");
 
 #if TEST_STD_VER >= 17
 static void BM_vector_bool_move_ctor_alloc_different(benchmark::State& state) {
@@ -48,7 +48,7 @@ static void BM_vector_bool_move_ctor_alloc_different(benchmark::State& state) {
   }
 }
 BENCHMARK(BM_vector_bool_move_ctor_alloc_different)
-    ->Name("vector<bool>(vector<bool>&&, const allocator_type&) (different allocators)");
+    ->Name("std::vector<bool>::ctor(vector<bool>&&, allocator) (different allocators)");
 #endif
 
 static void BM_vector_bool_size_ctor(benchmark::State& state) {
@@ -57,7 +57,7 @@ static void BM_vector_bool_size_ctor(benchmark::State& state) {
     benchmark::DoNotOptimize(vec);
   }
 }
-BENCHMARK(BM_vector_bool_size_ctor)->Name("vector<bool>(size_type, const value_type&)");
+BENCHMARK(BM_vector_bool_size_ctor)->Name("std::vector<bool>::ctor(size, value_type)");
 
 static void BM_vector_bool_reserve(benchmark::State& state) {
   for (auto _ : state) {
@@ -66,7 +66,7 @@ static void BM_vector_bool_reserve(benchmark::State& state) {
     benchmark::DoNotOptimize(vec);
   }
 }
-BENCHMARK(BM_vector_bool_reserve)->Name("vector<bool>::reserve()");
+BENCHMARK(BM_vector_bool_reserve)->Name("std::vector<bool>::reserve()");
 
 static void BM_vector_bool_resize(benchmark::State& state) {
   for (auto _ : state) {
@@ -75,6 +75,6 @@ static void BM_vector_bool_resize(benchmark::State& state) {
     benchmark::DoNotOptimize(vec);
   }
 }
-BENCHMARK(BM_vector_bool_resize)->Name("vector<bool>::resize()");
+BENCHMARK(BM_vector_bool_resize)->Name("std::vector<bool>::resize()");
 
 BENCHMARK_MAIN();



More information about the libcxx-commits mailing list