[libcxx-commits] [libcxx] 583a958 - [libc++] Reduce sequence container benchmark size ladder (#212281)
via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Jul 28 09:48:49 PDT 2026
Author: Louis Dionne
Date: 2026-07-28T12:48:45-04:00
New Revision: 583a958f83d813da3e2d9e801304d58de2493b62
URL: https://github.com/llvm/llvm-project/commit/583a958f83d813da3e2d9e801304d58de2493b62
DIFF: https://github.com/llvm/llvm-project/commit/583a958f83d813da3e2d9e801304d58de2493b62.diff
LOG: [libc++] Reduce sequence container benchmark size ladder (#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.
Added:
Modified:
libcxx/test/benchmarks/containers/sequence/sequence_container_benchmarks.h
Removed:
################################################################################
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