For a given compression ratio, both Otto and Diesel cycles have the same efficiency.
For a given compression ratio, Otto cycle is more efficient than Diesel cycle.
For a given compression ratio, Diesel cycle is more efficient than Otto cycle.
The efficiency of Otto or Diesel cycle has nothing to do with compression ratio.