DEV Community

Cover image for Benchmarks made easier with Phoronix Test Suite, running a simple benchmark with PTS
Sahil Arora
Sahil Arora

Posted on • Edited on

Benchmarks made easier with Phoronix Test Suite, running a simple benchmark with PTS

Linux Benchmarking made easy

No longer do you need to get lots of tools and software to benchmark a system. With something like Phoronix Test Suite, the whole process has become a lot easier.

So what is Phoronix Test Suite

It's a free and open-source benchmark software that is cross-compatible with multiple operating systems.

Installing Phoronix Test Suite

Phoronix Test Suite
Phoronix Test Suite Download

Installation on Ubuntu and Derivatives

  1. Download the .deb file from the link.
  2. Navigate to the location of the file and run.
$ sudo dpkg -i phoronix-test-suite*.deb
Enter fullscreen mode Exit fullscreen mode

Installation on Other Linux Distributions

  1. Download the Universal .tar.gz file.
  2. Extract the folder and navigate to the extracted folder.
  3. Run the following command.
$ sudo ./install-sh
Enter fullscreen mode Exit fullscreen mode

Getting Started

Run the Phoronix Test Suite running by executing

$ phoronix-test-suite
Enter fullscreen mode Exit fullscreen mode

Accept the EULA and conditions and wait for the dependencies to finish installing.

To get System Info

$ phoronix-test-suite system-info
Enter fullscreen mode Exit fullscreen mode

Get System Info

Pretty self-explanatory! The result will be similar to shown in the image above.

To get sensors data

$ phoronix-test-suite system-sensors
Enter fullscreen mode Exit fullscreen mode

System Sensors

To view all tests run

$ phoronix-test-suite list-all-tests
Enter fullscreen mode Exit fullscreen mode

List all Tests

To view all available test suites.

$ phoronix-test-suite list-available-suites
Enter fullscreen mode Exit fullscreen mode

List All Suites

Run your first benchmark

Let's try to run a simple benchmark like webp, to run enter the command given below

$ phoronix-test-suite benchmark webp
Enter fullscreen mode Exit fullscreen mode

You will be presented with several configuration options for the benchmark. The following options will be shown for the webp benchmark. Choose the appropriate option using the indexes of the options and press enter.
Running the Benchmark
After the test is completed, press Enter to open the result in a browser.
Test Result
The benchmark result file would open in the browser.

Configuring The results to see different types of graphs

The more test configurations you run, the more options you will get for graphs that you want to display.
Configuring The Result
You can also export benchmark data in various formats including CSV, PDFs, HTML, etc.
Export Data

That's all for now. This article is part of a series on benchmarking with Phoronix Test Suite.

Top comments (1)

Collapse
 
henrikch profile image
Henrik

One additional step I needed to take was to run the command

sudo apt -f install
Enter fullscreen mode Exit fullscreen mode

to install necessary dependencies (after going down the .deb route)