I found this on another web site
There's always a lot of confusion regarding octane, octane-boosters and how they work. Typical misconceptions are evident in blank-statements like:
"Higher octane fuels burn slower, thus their higher octane number"
"Higher octane fuels burn hotter, therefore more power is generated"
"Higher octane fuels explodes with more force, thus their higher power"
Both of which are untrue and are coincidental in effect, rather than causal. In actual practice, an engine has to be tuned specifically for high-octane fuels to generate extra power. If you have an engine fully-tuned and optimized for 91-octane pump gas, adding 100-octane race-gas into it will yield little if any increase. However, if you were to take that engine and increase the compression, advance the knock and/or increase the boost, then you can take advantage of the higher-octane fuel. But this precludes going back to the previous lower-octane fuels.
In short, an engine that is optimized for 87 octane will only see a slight improvement if you change to 105 octane unless other modifications or adjustments are made.
Often, as witnessed by me in my drag racing days, just advancing the timing is enough to make that difference. If you advance timing, switching back to 87 with out readjusting the timing will cause engine "ping", which is very damaging to an engine.
There are other adjustments that can be made, including boost pressure from a turbo or mechanical blower to further improve performance when using high octane fuels. Even if the base mechanicals are unchanged, modifying boost and timing advance will produce more HP.
From my personal lessons learned, only adding higher octane fuel may sometimes degrade performance unless other adjustments are made.