Engines can be tuned to produce more or less power depending on several factors.
The question on HP vs torque. Remember that HP is a mathematical oproduct of rpm X torque at that speed divided by a constant. If you hold torque constant and increase rpm, HP goes up. Gas engines have the ability to turn faster than diesels hence they will show higher HP even though their torque is less. Some gas engines with very high specific outputs ( a couple hundres HP per liter) develop this power only at a very narrow band of engine speed. Let the revs drop too low and there is very little power, but keep it in the power band and they run well. Diesels, on the other hand, dont't care; the power is all there from idle on up to the top of their ( somewhat limited) speed. Diesels are great for use with auto trans as they ( AT) require substantial torque to accelerate well.
The question on HP vs torque. Remember that HP is a mathematical oproduct of rpm X torque at that speed divided by a constant. If you hold torque constant and increase rpm, HP goes up. Gas engines have the ability to turn faster than diesels hence they will show higher HP even though their torque is less. Some gas engines with very high specific outputs ( a couple hundres HP per liter) develop this power only at a very narrow band of engine speed. Let the revs drop too low and there is very little power, but keep it in the power band and they run well. Diesels, on the other hand, dont't care; the power is all there from idle on up to the top of their ( somewhat limited) speed. Diesels are great for use with auto trans as they ( AT) require substantial torque to accelerate well.