Thermodynamics · Isentropic efficiency and entropy balances
For any steady device, the entropy leaving minus the entropy entering tells you how far it is from ideal.