summaryrefslogtreecommitdiff
path: root/bench.c
Commit message (Collapse)AuthorAgeFilesLines
* Add instrumentationBobby Bingham2014-10-291-2/+5
| | | | | Track the number of comparisons, swaps, and rotations performed in each part of the sorting algorithm.
* Make global state explicit in testcase generatorsBobby Bingham2014-08-031-2/+2
| | | | | | | The quicksort-killer testcase will require more global state, unless we go to the effort of implementing qsort_r versions of all the sorting algorithms. Since we're not doing that, we'll simply make the global state explicit.
* Rename generators to testcasesBobby Bingham2014-08-031-28/+8
| | | | | | This is in preparation for adding an implementation of the quicksort-killer test case, which requires a custom comparison function rather than just a custom imput-generation function.
* Run smaller test cases before largerBobby Bingham2014-06-291-2/+2
|
* Move assert_sorted helper somewhere more publicBobby Bingham2014-06-291-10/+0
|
* validate that sorter succeeded in sorting the inputBobby Bingham2014-06-211-0/+11
|
* Add glibc's sortsBobby Bingham2014-06-211-1/+1
| | | | Also rename musl's sort function for more consistency.
* Initial commit: benchmark musl's qsortBobby Bingham2014-06-201-0/+72