Text this: Large deviations for performance analysis