Well, here you go: https://gist.github.com/ridiculousfish/bb511993deba1d148317
qsort: 674 ms
std::sort: 1104 ms
qsort only requires one invocation of the comparator to determine the order, while std::sort often requires two. So qsort ought to be faster when comparisons are expensive.