Benchmarks made easier with Phoronix Test Suite, running a simple benchmark with PTS
Tags: linux, benchmarking
Published: 2021-04-27 14:20:21

# 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](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1aci9ldkv5zw48dj373t.png)
[Phoronix Test Suite Download](https://www.phoronix-test-suite.com/?k=downloads)
### Installation on Ubuntu and Derivatives
1. Download the `.deb` file from the link. 
2. Navigate to the location of the file and run.
```bash
$ sudo dpkg -i phoronix-test-suite*.deb
```

### 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.
```bash
$ sudo ./install-sh
```
## Getting Started
Run the Phoronix Test Suite running by executing
```bash
$ phoronix-test-suite
```
Accept the EULA and conditions and wait for the dependencies to finish installing.

### To get System Info
```bash
$ phoronix-test-suite system-info
```
![Get System Info](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uuiwdd7ywf48vhegm1ni.png)

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

### To get sensors data
```bash
$ phoronix-test-suite system-sensors
```
![System Sensors](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y5p93hch0ij0kw9pd8lc.png)

### To view all tests run
```bash
$ phoronix-test-suite list-all-tests
```
![List all Tests](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ewcwo4efpxic79nwj185.png)

### To view all available test suites.
```bash
$ phoronix-test-suite list-available-suites
```
![List All Suites](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5kia31b2i5qt9tsc8s1n.png)

### Run your first benchmark
Let's try to run a simple benchmark like `webp`, to run enter the command given below
```bash
$ phoronix-test-suite benchmark webp
```
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](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yd3t5kf7zsw8i17v3318.png)
After the test is completed, press Enter to open the result in a browser.
![Test Result](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/77ro9q0gf2zpz2ppanrm.png)
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](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m1e0lbee1v5n59kyzwzk.png)
You can also export benchmark data in various formats including CSV, PDFs, HTML, etc.
![Export Data](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/emurlv3tuvz4yu4dm1x1.png)

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