Not sure what cake we're talking about here but a pound of cheddar has roughly 1800 calories. A slice of cake is worth about 4 or 5 thick slices of cheese if you're trying to compare calorically.
Diesel fuel has a huge amount of calories, but your body obviously can't process it properly.