To show CPU frequency in linux,
cat /proc/cpuinfo | grep "cpu MHz"
limiting CPU throttling https://dunterov.github.io/cpu-freq/
set max CPU frequency: sudo cpupower --cpu all frequency-set --max 1500MHz
during go benchmarks, change this to sudo cpupower --cpu all frequency-set --max 300MHz
and you are ready to go.
Installing cpupower on fedora is done by: sudo dnf install kernel-tools