A little benchmark for sorting algorithm on different implementation of linked list like:
- Singly-linked list with insertion sort in recursive fashion
- Singly-linked list with insertion sort in iterative fashion
- Singly-linked list with locality-optimized merge sort
- Circular doubly-linked list with insertion sort in recursive fashion
- Linux
<list.h>
style linked list with insertion sort in recursive fashion - Xor doubly-linked list with insertion sort in recursive fashion
For more detailed analysis, please read this note.
make all
make bench-size
! Warning ! This may cost a few dozen of minutes.
- To find best configuration for locality optimization on merge sort, run
make test-optimize