performance metrics for pi and random