Quicksort uses about $\frac{N^2}{2}$ comparisons in the worst case.
Above case is also worst in space as it will take $N$ recursions.
Best case is when quicksort is when each partitioning stage divides the file exactly in half.
Quicksort uses about $2N \ln N$ comparisons on the average.
Dynamic Characteristics of quicksort on various types of files in file dependent and order of partitioning.