Benchmarking the CPU of a cloud server

With a virtual or cloud server you get very little information on how fast the processor actually is. A fast processor is an important factor in a fast WordPress site where hundreds of thousands of lines of PHP code need to be executed.

You can gain a rough idea by timing the CPU performing an intensive task like calculating prime numbers or in this instance calculating Pi to 5000 decimal places.

Run the following:

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

Results:
Ionos VPS L, 4 vCores,  8 GB: 16.660s, 16.775s, 16.804s
DigitalOcean Basic (Cloudways) 1 vCPU, 2 GB: 21.117s, 19.791s, 20.939s
DigitalOcean Basic, 1 vCPU, 2 GB: 23.525s, 26.642s, 29.319s
DigitalOcean Premium, 2 vCPU, 4 GB: 21.384s, 22.779s, 21.587s

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.