[libcxx-commits] [libcxx] [libc++] Add benchmarks for is_permutation and its std::ranges counte… (PR #130387)

Imad Aldij via libcxx-commits libcxx-commits at lists.llvm.org
Sat Mar 8 12:20:00 PST 2025


imdj wrote:

> Did you copy this from @ldionne's PR?

No, I looked for benchmarks that target `is_permutation` but I couldn't find anything, maybe I missed it.
I just wanted to test my implementation so I made something basic by following the footsteps of other existing benchmarks (e.g. [mismatch](https://github.com/llvm/llvm-project/blob/c4ed0ad1f52a7bec7377bbaf75f812527ec739bd/libcxx/test/benchmarks/algorithms/mismatch.bench.cpp), [ranges_end_with](https://github.com/llvm/llvm-project/blob/c4ed0ad1f52a7bec7377bbaf75f812527ec739bd/libcxx/test/benchmarks/algorithms/ranges_ends_with.bench.cpp)).


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


More information about the libcxx-commits mailing list