[libcxx-commits] [libcxx] [libc++] Try to make vector benchmarks less dependent on surrounding benchmarks (PR #213938)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Aug 12 06:23:01 PDT 2026
================
@@ -428,8 +431,9 @@ void sequence_container_benchmarks(std::string container) {
if constexpr (has_prepend_range) {
for (auto gen : generators)
- bench("prepend_range() (into empty container)" + tostr(gen), [gen](auto& state) {
+ bench("prepend_range() (into empty container)" + tostr(gen), [gen] BENCHMARK_ATTRS(auto& state) {
auto const size = state.range(0);
+ BENCHMARK_ATTRS
----------------
ldionne wrote:
```suggestion
```
That seems like a copy-paste error.
https://github.com/llvm/llvm-project/pull/213938
More information about the libcxx-commits
mailing list