[libcxx-commits] [libcxx] [libc++] Drop the unrepresentative search_n benchmark (PR #184783)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Fri Mar 6 08:45:14 PST 2026


https://github.com/ldionne commented:

Wouldn't it make more sense to instead make it so that the compiler can't constant-fold the algorithm?

Or do you mean that the benchmark is always pointless (for libc++) because we jump forward by the needle size and so it's very fast? If that's what you mean, I still think this benchmark makes sense: it's not because our implementation can do that efficiently right now that we should get rid of the coverage for it. I kinda view these benchmarks as regression tests for our performance.

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


More information about the libcxx-commits mailing list