How to benchmark virtual machines

When you are comparing various hypervisors, you will want to compare the performance of virtual machines (VMs) running on different hypervisors. If you are comparing various IaaS cloud providers, you will also want to benchmark VMs, in this case, from different providers. Whatever the reason may be, it is important to know how to benchmark VMs properly.

However, difficulty in any kind of benchmark tests is the fact that benchmark numbers are highly dependent on the type of workloads or applications used to derive the numbers. To properly assess the relative performance of any computer system, people come up with different types of benchmark tests, such as real program benchmark, synthetic benchmark, microbenchmark, etc.

In Linux, there are several benchmark software available, and Phoronix Test Suite is one such tool. Phoronix Test Suite is an open-source benchmarking platform which provides an extensible list of test profiles and test suites. These test profiles and suites can measure different kinds of performance characteristics of an underlying system (e.g., CPU, disk I/O, RAM, networking). Phoronix Test Suite also allows you to upload your benchmark result along with system specification to, so that you can compare your result with others.

The following is the guide on how to benchmark a virtual machine with Phoronix Test Suite.

First, download phoronix-test-suite, and install it (along with its dependent packages). From the official website, you can download either a .deb package or a generic package.

To install phoronix-test-suite on Ubuntu or Debian:

$ sudo apt-get install php5-cli curl php5-gd
$ sudo dpkg -i phoronix-test-suite_4.6.1_all.deb

To install phoronix-test-suite on CentOS, RHEL or Fedora:

$ sudo yum install php-cli php-gd curl
$ sudo tar xvfvz phoronix-test-suite-4.6.1.tar.gz
$ cd phoronix-test-suite
$ sudo ./install-sh

Phoronix Test Suite automatically downloads (over network) test profiles and test suites that you choose, and (optionally) uploads benchmark results to Thus, you need Internet access for one-time download of any needed test profiles/suites, and if your virtual machine is behind a proxy, you need to do initial proxy configuration by entering:

$ phoronix-test-suite network-setup

To see a list of available tests:

$ phoronix-test-suite list-tests
Phoronix Test Suite v4.6.1
Available Tests

pts/aio-stress                 - AIO-Stress                          Disk     
pts/apache                     - Apache Benchmark                    System   
pts/apitrace                   - APITrace                            Graphics 
pts/battery-power-usage        - Battery Power Usage                 System   
pts/blake2                     - BLAKE2                              Processor
pts/blogbench                  - BlogBench                           Disk     
pts/bork                       - Bork File Encrypter                 Processor
pts/botan                      - Botan                               Processor

To see a list of test suites:

$ phoronix-test-suite list-suites
Phoronix Test Suite v4.6.1
Available Suites

  pts/audio-encoding               - Audio Encoding                   System
  pts/chess                        - Chess Test Suite                 Processor
  pts/compilation                  - Timed Code Compilation           Processor
  pts/compiler                     - Compiler                         Processor
  pts/compression                  - Timed File Compression           Processor
  pts/computational                - Computational Test Suite         System

If you choose a specific test or a test suite (e.g., aio-stress) from the lists, you can run phoronix-test-suites as follows.

$ phoronix-test-suites run aio-stress

If you run a given test for the first time, phoronix-test-suites may ask you to install necessary packages for the test.

Once the requested test is completed successfully, the result will be saved locally, and optionally uploaded to In order to see the list of all saved benchmark results:

$ phoronix-test-suite list-results

Subscribe to Xmodulo

Do you want to receive Linux FAQs, detailed tutorials and tips published at Xmodulo? Enter your email address below, and we will deliver our Linux posts straight to your email box, for free. Delivery powered by Google Feedburner.

Support Xmodulo

Did you find this tutorial helpful? Then please be generous and support Xmodulo!

The following two tabs change content below.
Dan Nanni is the founder and also a regular contributor of He is a Linux/FOSS enthusiast who loves to get his hands dirty with his Linux box. He likes to procrastinate when he is supposed to be busy and productive. When he is otherwise free, he likes to watch movies and shop for the coolest gadgets.

Leave a comment

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