Is it cheaper to run an electric car than a petrol with energy prices rising?

Energy price cap rises are likely to dent the cost-saving benefits of running an electric vehicle versus a car with a petrol engine. But by how much?