Typical approach on an HV server is to disable C States, set power management to high, etc preventing x86 from downclocking. Keeping the CPU from seesawing can have big improvements.

But you’re not going to do that in a lab/personal machine, usually.

Or just disable turbo boost

That’s not sufficient as you will still downclock.