When I run the google benchmark I get a WARNING saying that cpu scaling is enabled. Is that a feature that I can toggle at build via flags or at runtime via arguments or is it a system setting?
As stated in google benchmark documentation, to disable CPU scaling use cpupower
tool.
sudo cpupower frequency-set --governor performance
./mybench
sudo cpupower frequency-set --governor powersave