How To Install httperf on Fedora 34

httperf is Tool for measuring web server performance

Introduction

In this tutorial we learn how to install httperf on Fedora 34.

What is httperf

Httperf is a tool for measuring web server performance. It provides a flexible facility for generating various HTTP workloads and for measuring server performance. The focus of httperf is not on implementing one particular benchmark but on providing a robust, high-performance tool that facilitates the construction of both micro- and macro-level benchmarks. The three distinguishing characteristics of httperf are its robustness, which includes the ability to generate and sustain server overload, support for the HTTP/1.1 and SSL protocols, and its extensibility to new workload generators and performance measurements.

We can use yum or dnf to install httperf on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install httperf.

Install httperf on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install httperf using dnf by running the following command:

sudo dnf -y install httperf

Install httperf on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install httperf using yum by running the following command:

sudo yum -y install httperf

How To Uninstall httperf on Fedora 34

To uninstall only the httperf package we can use the following command:

sudo dnf remove httperf

httperf Package Contents on Fedora 34

/usr/bin/httperf
/usr/bin/idleconn
/usr/lib/.build-id
/usr/lib/.build-id/fa
/usr/lib/.build-id/fa/65fc5a974e5f3939750eab2654d47e6a4a707f
/usr/lib/.build-id/fc
/usr/lib/.build-id/fc/738ff199b14930081ee51b669478160e1dc5b1
/usr/share/doc/httperf
/usr/share/doc/httperf/AUTHORS
/usr/share/doc/httperf/ChangeLog
/usr/share/doc/httperf/NEWS
/usr/share/doc/httperf/README.md
/usr/share/doc/httperf/TODO
/usr/share/licenses/httperf
/usr/share/licenses/httperf/COPYRIGHT
/usr/share/man/man1/httperf.1.gz
/usr/share/man/man1/idleconn.1.gz

References

Summary

In this tutorial we learn how to install httperf on Fedora 34 using yum and dnf.