performance test for sorting algorithm