Engine control systems are very sophisticated now. Current 32-bit ECU's can modify engine operating parameters on a cylinder-by-cylinder and cycle-by-cycle basis.
How an engine is operated is also very important. Take for example, the Toyota Prius engine. It has a compression ratio of 13.0:1, which is normally only seen in race engines running on 105 octane race fuel. Yet the Prius happily accepts 87 octane pump gas. Why? Because the Prius combustion engine, with its electric motor assist, is never required to operate under conditions where it might encounter detonation. So 87 octane fuel is OK.