Webinar
Smarty

Performance testing with Phoronix

Smarty header pin graphic
Jonathan Duncan
Jonathan Duncan
 • 
October 5, 2015
Tags

Not every server is made equally. On dedicated servers, the hardware varies widely. On virtual and cloud servers, the resource allocations also vary widely. Some servers are CPU-optimized for maximum computing power. Others focus on having a lot of memory. Some servers are built to have a good balance of all system resources.

Hardware aside, we require many differing tasks of our servers. Some applications are processor hungry, some need large amounts of disk space, while others take up a lot of memory.

In other words, one server size does not fit all.

In order to determine which servers are most effective, we run performance tests. For applications that are CPU intense, we run tests that focus on measuring the processing capabilites of multiple classes of servers, and then we compare the results. In this way we are able to find the sweet spots that allow us to get the most bang for our bucks out of the servers we employ.

Phoronix is just one of the many testing tools out there.

Install

First, you need to acquire the installation package. One option is to go to the Phoronix download page, and pick a version. Then, you can download it to the machine that will be running the tests.

$ cd /path/you/want/phoronix/to/be/
$ curl -O https://phoronix-test-suite.com/releases/repo/pts.debian/files/phoronix-test-suite_5.8.0_all.deb

Then run the install process:

$ sudo dpkg -i phoronix-test-suite_5.8.0_all.deb
$ sudo apt-get install -f

Once the program is installed, run it for the first time. It will ask you a couple of questions and then show you all the options available to you:

$ phoronix-test-suite

Test

There are many different tests available to use. You can see what individual tests are available:

$ phoronix-test-suite list-available-tests

Or you can look for groups (suites) of tests:

$ phoronix-test-suite list-available-suites

You can get information on a particular test or suite:

$ phoronix-test-suite info [test]

When you know what test or tests you want to run, you need to install the test dependencies before you can run them.

You can run the install in a separate operation:

$ phoronix-test-suite install pts/build-mplayer-1.3.0

Then:

$ phoronix-test-suite run pts/build-mplayer-1.3.0

Or you can invoke benchmark which will first install and then run the tests for you.

$ phoronix-test-suite benchmark pts/build-mplayer-1.3.0

You can run each test individually or several at a time. Whether you run one test or multiple, you can run them in interactive mode or batch mode. Batch mode is great if you want to run many tests without needing to babysit.

Batch

Run the batch-setup and answer all the questions:

$ phoronix-test-suite batch-setup

You can check to make sure the answers were saved properly by looking in the BatchMode section of ~/.phoronix-test-suite/user-config.xml file.

Once batch mode is setup, you can start the batch-benchmark command and walk away while Phoronix installs and runs all your tests. Unless you requested some interactivity when you did the batch-setup.

You can batch a list of tests:

$ phoronix-test-suite batch-benchmark \
	pts/build-apache-1.5.1 \
	pts/build-firefox-1.0.0 \
	pts/build-linux-kernel-1.5.3 \
	pts/build-mplayer-1.3.0 \
	pts/build-php-1.3.1 \
	pts/build-webkitfltk-1.0.0 \
	pts/compress-7zip-1.6.0 \
	pts/compress-gzip-1.1.0 \
	pts/compress-lzma-1.2.0 \
	pts/compress-pbzip2-1.4.0 \
	pts/gcrypt-1.0.3 \
	pts/gmpbench-1.1.0 \
	pts/gnupg-1.3.1

Or you can batch a suite of tests:

$ phoronix-test-suite batch-benchmark pts/cpu

Once the tests are run the results will be saved locally and (if you opted for this) uploaded to OpenBenchmarking.org.


Take a look at the official Phoronix documentation for many more details on how to use this tool.

Subscribe to our blog!
Learn more about RSS feeds here.
rss feed icon
Subscribe Now
Read our recent posts
How I reduced my returned mail from 27% to 1% using address autocomplete
Arrow Icon
The following is based on a true story. Some of the names and relationships have been changed to protect the anonymity of individuals and companies. However, the numbers are 100% accurate. In 2023, I wanted to mail some really fancy cards to 165 businesses. I collected their addresses by asking for them or finding them in their online listing and collected them all in a neat little row. Then, I went a step further and ran these addresses through Smarty's bulk address validation tool. Everything was set and perfect.
The ROI of accurate healthcare address validation: Stop hemorrhaging red on your financial statements
Arrow Icon
In healthcare, the havoc an inaccurate address can wreak on your financial results is significant in more ways than one, and the boost in overall profitability from maintaining a clean address database is equally worth noting. Accurate healthcare address validation improves operational efficiency, patient engagement, and compliance and builds revenue to heights that couldn’t be met without it. Here’s what we’ll be covering:Healthcare address validation pros and consCon: Increased claim denials and organizational costsPro: Reduced claim denials and reprocessing costsCon: Increasing patient match error ratesPro: Improved patient matching and data qualityCon: Complicated billing and collections processesPro: Streamlined billing and collections capabilitiesCon: Exposure to legal liabilitiesPro: Enhanced regulatory compliance and risk aversionCon: Misplaced market strategyPro: Data-driven decision-making and market insightsEpilogue: Avoiding the pain (see our summarized financial savings)Healthcare address validation pros and consThere’s a pro and a con associated with having (or not having 🫣) accurate address data in your healthcare systems.
From cart to commitment: Ultimate ecommerce checkout guide
Arrow Icon
Cart abandonment is the nemesis of ecommerce. With 70% of carts left stranded, every tweak to your checkout process can lead to significant revenue recovery. Here's how to create a seamless experience, win over customers, and boost conversions. PSST! If you like what you see but don’t want to have to read it, here’s a FREE downloadable guide (in checkbox format for your convenience) for all you skimmers out there. We seriously won’t ask you for a credit card… or anything, really. Building a frictionless checkout experienceA smooth checkout makes all the difference.