20% was the efficiency for very ancient engines.
Modern internal-combustion engines have 35% to 40% efficiency, with even efficiencies of over 50% for the very big 2-stroke Diesel engines used in ships.
Nonetheless that remains about half of the efficiency of electric vehicles and the energy efficiency of the latter can be greatly increased over this ratio by the recovery of the kinetic or gravitational energy, when braking or descending.