I want to compare servers that run Linux (Centos) against each other - cpu wise.
I thought of taking the sum of all cpus bogomips for comparison, but could only come up with this ugly shell line:
echo 0 `cat /proc/cpuinfo | grep bogomips | cut -d ":" -f 2 | tr " " "+" `| bc
(the 0 is needed because otherwise the line starts with + and is not suitable for bc)
Are there better ways to do this?