Linux CPU benchmark for the Console

This entry was posted by on Thursday, 12 December, 2013

A simple way to compare the CPU speed between two servers:

time echo "scale = 5000; a (1) * 4" | bc -l

This commands calculates Pi to the 5000th decimal place, and returns the time needed to do it.

Sample result:
real 0m16.809s
user 0m15.529s
sys 0m0.024s


Leave a Reply