Large Deviations For Performance Analysis