Good question, and there is an easy answer.... if you don't get any detonation under any
load, rpm and temperature conditions, then you have enough octane. The chart below gives
one generalised answer, but there are many factors involved and no-one can give you a specific
answer to the question "how much octane do I need for my engine ?".

Of course if your engine is factory stock the manufacturers handbook will tell you what octane
rating you should use. But for a modified engine the octane required depends on a number of
factors such as engine design, effective compression ratio, ignition timing and fuel mixture.
Given that light detonation may not be audible when driving, but is still capable of causing
engine damage, you can either rely on your engines knock detection system to keep you safe
or you can book a dyno session. Check and adjust the tune if necessary before testing. Make
sure to use a competent operator with decent gear for listening for knock, run the engine
thru its full operating range. If knock is detected you can either retard the ignition slightly
and see if it goes away. If not, fill up with a higher octane gas and back to the dyno.
That is the only sure way if you don't have a working knock detection system connected to
your ECU to retard the ignition timing when knock is detected.
Cheers... jondee86