Sort of on-topic ....
In thermal efficiency the OTTO cycle is more efficient due to higher heat input temperatures (close to 4000) but the losses of throttlling, heat transfer, incomplete combustion and friction reduce the efficiency below that of the diesel cycle.
In thermal efficiency the OTTO cycle is more efficient .....
That's what we get from people studying thermodynamics and defining an idealised Otto cycle as constant volume combustion, and an idealised Diesel cycle as being constant pressure combustion. But constant volume combustion would mean you can burn all the fuel instantaneously at top dead centre. The combustion is of course slower than that in practice. And the constant pressure idea from (thermodynamisicst's) idealised Diesel cycle doesn't seem too accurate to me either.
Then, the themodynamics guys go on to deduce that
in thermal efficiency the OTTO cycle is more efficient, but we should qualify that, and say
for the same compression ratio. So the real way to increase efficiency of petrol/gasoline engines ought to be to increase the compression ratio and to prevent the fuel autoigniting by not injecting it into the cylinder until near TDC. Efficiency could then be further increased by running lean. If the fuel air mixture were near stoichiometric in the centre of the cylinder and the excess air were around the outside of the cylinder insulating it from heat transfer to the cylinder walls, and there to pick up and burn any leftovers hydrocarbons from the combustion in the centre, then the engine should be even be more efficient. I believe that is pretty much the VW fuel stratified injection that has been winning at Le Mans.
If we look at the differences between what we might call Diesel and petrol engines, or might call spark ignition and compression ignition engines, we can list quite a few.
Fuel used
Throttle
Compression ratio
fuel delivery method
fuel ignition method
fuel equivalence ratio
I think we can see many of the differences disappearing as people look for Diesel engine efficiency without using Diesel fuel. For example BMW used IVT (intake valve throttling) to eliminate the need to suck air past a throttle. Fuel ignition method? Does it really matter? The main body of fuel in a so called compression ignition engine is ignited by injecting it into an already lit pilot flame, so compression ignition is a misleading description. It is almost irrelevant how the pilot flame was lit: maybe with the aid of a glow plug.