Comparisons to sort n = 100,000 Integers ======================================== input HeapSort Arrays.sort (TimSort) random 3,020,038 1,534,840 ascending 3,112,517 99,999 descending 2,926,640 99,999