How do we measure the performance of Problem-Solving Algorithms?

If we look at it any algorithms like sorting ...