Comparing the two formulae it can be seen that for a given compression ratio (r), the ideal Otto cycle will be more efficient. However, a Diesel engine will be more efficient overall since it will have the ability to operate at higher compression ratios. If a petrol engine were to have the same compression ratio, then knocking (self-ignition) would occur and this would severely reduce the efficiency, whereas in a Diesel engine, the self ignition is the desired behavior. Additionally, both of these cycles are only idealizations, and the actual behavior does not divide as clearly or sharply. And the ideal Otto cycle formula stated above does not include throttling losses, which do not apply to Diesel engines.