[libcxx-commits] [libcxx] [libc++] Remove {Pause, Resume}Timing from fast push_back benchmarks (PR #209130)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Jul 14 05:24:09 PDT 2026
================
----------------
philnik777 wrote:
We could, but I don't think we fundamentally need to benchmark only a single thing. pausing and resuming always have significant cost and increase noise. 10-20 vectors is most likely not nearly enough to overcome that noise, and at some point we're benchmarking how fast we can iterate through memory and not `push_back` anymore.
Also note that for trivial types `erase` and `clear` are constant time operations, since the vector just has to set a single pointer.
https://github.com/llvm/llvm-project/pull/209130
More information about the libcxx-commits
mailing list