Just over a year ago I switched to the Octopus tracker tariff. (The one that changes the rate every day, rather than every half hour.) I later realised that the Iran war probably made that a bad choice. I've just now got around to looking at my bills and setting up a spreadsheet to see how much I actually paid over the year.
For electricity it seems I paid an average of 24 p/kWhr. I don't have my own records of what their fixed rate would have been at the time, but from online I gather it was 25.1 p/kWhr. So I was actually 4% better off with the tracker for electricity, despite the war. (The tariff is the same for day/night, and I use over 80% of my electricity during the day.)
For gas, I paid an average of 5.8 p/kWhr. The fixed tariff at that time was 5.2 p/kWhr, so I was 12% worse off with the tracker. Sad because I have gas heating and use a lot more of it than electricity, so I lost overall. Obviously I wasn't to know the war would happen. When I did realise what the impact would be, I could have switched. I wouldn't be savvy enough to switch immediately, so I've looked up the fixed tariff for April, about a month after the war started. That was 7.6 p/kWhr. Had I switched then, I would have been about 8% worse off.
Fixed rates have to include an element of insurance against things like the war happening. One argument for using a tracker is that you avoid paying for that insurance, so on average the price ought to be a bit lower. Any time you are not paying for insurance you should think of yourself as self-insuring. I gambled and lost. I'm OK with that. I'm fortunate enough that the extra cost was still affordable for me.
Overall I don't regret my choices, and I'm sticking with the tracker going forward. I'm especially glad I didn't switch in April after the war kicked off.
Obviously your mileage may differ, and it partly depends how much power you use and whether you can afford the risk of self-insuring. But maybe this data point will be of interest.