Knocking and engine efficiency are inter-related.
That being said, unless you are constantly flooring the accelerator and / or doing a lot of track driving, it seems challenging to make a modern (and properly functioning) engine knock on a persistent basis (irrespective of octane).