Why does a diesel convert less energy into heat?

Moin. A diesel engine is known to be much slower warm than a gasoline engine. One reason is that the diesel engine generally has more mass than a gasoline engine. However, that is not the main reason. The main reason is more that when combustion is less heat than with the gasoline engine, which I do not understand at all. Diesel has more energy per litre than gasoline, because the energy density is higher, so less diesel can be injected into an engine than in a petrol engine and despite the diesel has a lot of power. But now comes the point that I don’t understand. Why is there now less heat than in a gasoline engine? Example: in a gasoline engine is now injected so much gasoline, that exactly as much energy is now available, as in a diesel engine diesel is injected. And the combustion of the diesel runs however, less warm off, than in the gasoline engine, although in both engines now exactly “same” energy available I hope you understand what I mean. And by the way, I’m new here, so please don’t be surprised if anything is wrong here.