[snip]
> So at least on randomized data, the swap_cnt thing is a serious loser.
> Need to run some tests on special-case inputs though. Anyone have a
> test suite they like?
>
> regards, tom lane
Here is a distribution maker that will create some torture tests for
sorting programs.
Lacks a main() function.