High octane fuel doesn't actually have any more energy content than lower grades, but as it is more resistant to pre-ignition, the knock sensor and ecu will allow more advance resulting in more power. This only works in cars with knock sensors. If a carbed car does not ping on low grade fuel switching to high grade won't improve performance (except for a possible placebo effect).
regards,
Phil