Also, most diesel engines are unthrottled and diesel fuel has more energy per unit compared to gasoline. And since it is a 100% compression ignition engine, the compression ratio must be very high. A higher compression ratio is capable of producing far more power and far greater fuel economy than a lower compression ratio. A diesel engine is more efficient at converting the energy from combustion into torque to turn the engine, due in part to 1.) the high compression ratio and 2.) the diesel fuel.
Since most diesel engines are unthrottled, they control combustion by adjusting the fuel, rather than open or closing a throttle valve. This lessens what we call "pumping losses" or "throttling losses." An easy way to understand it is this: imagine you are driving on the freeway at a steady cruise, in a throttled engine (ex. gasoline engines). Velocity is constant and acceleration is zero. What does the throttle valve look like? It is almost closed. Air is FIGHTING its way to get into the engine simply because of pressure. Now, imagine you are accelerating hard. What does the throttle valve look like? It is wide open. Throttling losses are minimized. However, pressure still affects the fluid flow, which is why the intake tract must be designed in a way to allow a lot of air in, but when that throttle closes up, it needs to be narrow enough to increased pressure and turbulent airflow so that the air is "assisted" to overcome the throttling losses.
Forced induction engines have this problem minimized even further because the addition of a supercharger or turbocharger allows the changes due to pressure to be adjusted a bit. So there is more flexibility. However, a turbocharger/supercharger does not completely eliminate this problem because if the intake tract is not big enough under wide open throttle to allow enough air inside the engine, air will be forced back out hitting the compressor blades and counteracting its motion. The turbocharger or supercharger can be damaged as a result. However, bypass valves can be installed to eliminated this.
Back to the diesel engine. Almost all diesel engines today are turbocharged. Combined with the minimized throttling losses (there are still losses wherever we go in mechanical engineering) of an unthrottled engine, and the addition of a turbocharger, the engine can be designed in a way to favor performance while increasing fuel economy at the same time in comparison to gasoline engines.