Measuring the performance