Performance-based codes