Updated functionality for computing perf stats