[libcxx-commits] [libcxx] [libc++] Speed up vector<bool> copy/move-ctors [1/3] (PR #120132)
Peng Liu via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Jan 29 13:43:32 PST 2025
================
@@ -39,6 +39,16 @@ void BM_CopyConstruct(benchmark::State& st, Container) {
}
}
+template <class Container, class Allocator>
+void BM_CopyConstruct_Alloc(benchmark::State& st, Container, Allocator a) {
+ auto size = st.range(0);
+ Container c(size);
+ for (auto _ : st) {
+ Container v(c, a);
----------------
winner245 wrote:
Added the comment.
https://github.com/llvm/llvm-project/pull/120132
More information about the libcxx-commits
mailing list