[PATCH] D36423: [libc++] Introsort based sorting function

Ben Craig via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 8 18:46:12 PDT 2017


bcraig added a comment.

Those are interesting (and useful) results... but they don't look like they came from the same algorithms.bench.cpp that I'm looking at...
https://github.com/llvm-mirror/libcxx/blob/master/benchmarks/algorithms.bench.cpp

That being said, the benchmark there only does 1k elements at a time, and doesn't have the worst case for quick sort like yours does.  Adding to the upstream algorithms.bench.cpp seems valuable.


https://reviews.llvm.org/D36423





More information about the cfe-commits mailing list