Wow, I can see that this conversation has been pretty well all over the place since I last visited. So, perhaps I won't be publicly lynched for asking a question. Way back when dirt was new, I used to race motorcycles. To be a good racer, I was taught that you needed to know pretty well how everything worked on your bike. So, I was sent to a technical school for internal combustion engines at a relatively young age. I could tear down a 2 stroke and a 4 stroke engine by the time I was 14. By the time I was 16, I was able to change the clutch in my 1970 1/2 (yes, the 1/2 was included) Camaro on my high school lunch break. At a recent class reunion the MC of our reunion spoke to our class of how he got talked into going to my house at least twice to help change a clutch in my car.

Everyone laughed and seemed surprised that I ended up doing nothing related to racing or turning wrenches.
Anyway, we covered the "thermal engine" for about a month. Most people have no idea that the diesel engine was first called a "thermal engine" and Rudolph Diesel's first patent on the engine referred to it as an internal combustion thermal engine. I think the first version ran on peanut oil. Also, from what I recall, the fuel ratio could vary widely. Since it's been a while my memory may be off, but isn't the agreed optimum air to fuel ratio at sea level on a gasoline engine about 14.7:1 and on a diesel engine about 30:1? I ask that because the diesel engine runs quite a bit more air through the engine cycle than a gasoline engine. Therefore, in my mine, a naturally aspirated gas engine and a naturally aspirated diesel engine could be affected differently at altitude since the diesel engine requires more air on which to run. Without the assistance of a turbo to push more air into the cylinders, it seems that a diesel may suffer more power loss at altitude than a gas engine since its output requires more air.
I know that each engine would have equally less oxygen with which to work at high altitudes, but mathematically, the naturally aspirated diesel engine would have a greater percentage of reduction per stroke. Which, if correct, would cause a naturally aspirated diesel engine to suffer more with a loss of air? The difference being that most on the road diesels have turbos which would help alleviate this reduction in air; especially if it is a newer hybrid design turbo. Then, with the aid of a turbo, the diesel engine would "feel" as if it didn't lose as much power. Right?