Lipids would be the answer that you are looking for. When talking food energy it's best to speak in terms of calories. Therefore, lipids or fats offer the greatest amount of heat or energy.
The difference between granites and basalts is in silica content and their rates of cooling. A basalt is about 53% SiO2, whereas granite is 73%. Intrusive, slowly cooled inside the crust.