The idea of using a portable generator for 230V ac powering a caravan has raised its head again.
To put it bluntly small petrol generators are horrendously inefficient and expensive to run. If you look at whole life costs, some alternatives do make a very strong argument and should be considered.
To establish the efficiency of system you need to know the ratio of the input to the output. In the case of a generator we need to know the energy in each unit of fuel, and the amount of useful energy produced at the output of the generator for each unit of energy input.
The most common fuel used in portable generators is petrol, and most of it is purchased at filling station prices.
Petrol (Gasoline) has approximately 8.75 kWh/L (heating power per Litre)
If we consider one of the most popular suitcase generators by Honda the EU22I which according to honda's website
https://www.honda.co.uk/content/dam/local/uk/brochures/industrial/EU22i Generator Launch Leaflet.pdf
It has a fuel tank capacity of 3.6L and a stated runtime of between 8.1H (I pressume no load) to 3.2H (on full load) Honda also claim a 3.6H run time @ 1.6kW continous loading.
At its rated its rated output of 1800W it will consume 3.6L of fuel in 3.2 hours. That is 1.125L per hour. That equates to 8.75kw/L x 1.125 9.84kW of fuel to produce 1.8Kw = 18.2% efficency
But at no load it continues to run and your electrical efficiency is zero! and as most caravans do not consume a constant amount of power due to thermostats turning load on and off the efficiency of the generator will in practice be less and closer to 10%!
To put it another way you are wasting about 82 to 100% of the petrol you are putting into the generator! You are also paying road fuel duty which is not actually applicable for non motive power applications.
But that isnt the end of it, There is of course the purchase cost, other consumables such a engine oil, and the costs of regular servicing required to maintain its efficiency.
To offer a comparison, by law all gas appliances have to be a minimum of 70% efficient, so for things like space heating gas is a far better option than running a generator. Even though gas may cost more per unit its still more cost effective than using generator power.
There are some appliances that cant use gas, things like TV's, so the alternative to a petrol generator would be to use an 12Vdc to 230Vac inverter or choose a 12V operated TV. Recharging the battery is possible using solar panels, which are coming down in price. Over an equivalent time looking at lifetime costs Solar panes will be much cheaper than running a generator, and much more convenient and reliable.