[libcxx-commits] [libcxx] [libc++] Reduce sequence container benchmark size ladder (PR #212281)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jul 27 08:49:43 PDT 2026


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

The sequence containers were registered for 32, 1024 and 8192. This patch drops the mid-size point to get roughly a 30% speedup when running the benchmarks.

>From e8057e8d8c8cca25960b09745e85182cade07c35 Mon Sep 17 00:00:00 2001
From: Louis Dionne <ldionne.2 at gmail.com>
Date: Sat, 25 Jul 2026 07:36:03 -0400
Subject: [PATCH] [libc++] Reduce sequence container benchmark size ladder

The sequence containers were registered for 32, 1024 and 8192. This patch
drops the mid-size point to get roughly a 30% speedup when running the
benchmarks.
---
 .../containers/sequence/sequence_container_benchmarks.h         | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libcxx/test/benchmarks/containers/sequence/sequence_container_benchmarks.h b/libcxx/test/benchmarks/containers/sequence/sequence_container_benchmarks.h
index 729f587c3388b..5210008989ff7 100644
--- a/libcxx/test/benchmarks/containers/sequence/sequence_container_benchmarks.h
+++ b/libcxx/test/benchmarks/containers/sequence/sequence_container_benchmarks.h
@@ -57,7 +57,7 @@ void sequence_container_benchmarks(std::string container) {
   static constexpr std::size_t BatchSize = 32;
 
   auto bench = [&](std::string operation, auto f) {
-    benchmark::RegisterBenchmark(container + "::" + operation, f)->Arg(32)->Arg(1024)->Arg(8192);
+    benchmark::RegisterBenchmark(container + "::" + operation, f)->Arg(32)->Arg(8192);
   };
 
   /////////////////////////



More information about the libcxx-commits mailing list