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

via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jul 27 08:50:21 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libcxx

Author: Louis Dionne (ldionne)

<details>
<summary>Changes</summary>

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.

---
Full diff: https://github.com/llvm/llvm-project/pull/212281.diff


1 Files Affected:

- (modified) libcxx/test/benchmarks/containers/sequence/sequence_container_benchmarks.h (+1-1) 


``````````diff
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);
   };
 
   /////////////////////////

``````````

</details>


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


More information about the libcxx-commits mailing list