pq_performance function

calculating performance metrics