Disabling Spectre V2 Mitigations Is What Can Impair AMD Ryzen 7000 Series Performance
Code compilation workloads were negatively impacted by disabling the Spectre V2 mitigation than keeping to the default (secure) state.
For many different real-world workloads, it was shown to be best now on Zen 4 leaving to the default kernel state rather than disabling the mitigations in trying to better the performance.