Bencher is a simple and lightweight tool designed for benchmarking HTTP servers. It's built using the Rust programming language and can be installed on various operating systems, including Debian. In this tutorial, we'll walk you through the steps required to install Bencher on Debian latest.
• A Debian latest instance with root access.
• A package manager to manage the installation of dependencies.
Before anything else, update the Debian package repository to ensure you're installing the latest versions of software packages.
sudo apt-get update
Bencher is built using the Rust programming language. Therefore you must install Rustup, which is Rust's official installation tool.
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
After installing Rustup, initialize the environment by running:
source $HOME/.cargo/env
Confirm that Rustup is installed:
rustup --version
You should see output similar to:
rustup 1.24.0 (12e797a40 2021-07-01)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `1.50.0 (cb75ad5db 2021-02-10)`.
To install Bencher, run the following command:
cargo install bencher
The command may take a while to execute, especially if you're performing a fresh installation of Rustup and Cargo.
After completing the installation process, verify that Bencher is installed by typing the bencher
command on your terminal.
bencher
If Bencher is successfully installed, you should see output that looks similar to the following:
bencher 0.3.1
Khyber Zaffarkhan (https://khyber.me)
Benchmark and plot HTTP data from a server
USAGE:
bencher [OPTIONS] --report-type <report-type> --url <url> [FIELD]...
bencher [FLAGS] --results-path <results-path>
--url <url>...
FLAGS:
-h, --help Prints help information
-u, --human-readable
Show the totals in human readable format
-V, --version Prints version information
-v, --verbosity Enable verbose output (-v, -vv, -vvv...)
OPTIONS:
-c, --concurrency <concurrency>
The number of concurrent connections to use. (default: 1)
-r, --request-body <request-body>
The request body to use
-x, --request-header <request-header>
The request header to use
-p, --report-type <report-type>
The type of report to generate (json|csv|text) [possible values: json, csv,
text]
-l, --results-path <results-path>
Path to the file where benchmark results will be stored
-u, --url <url> The URL to fetch
ARGS:
<FIELD>... Fields to collect for HTTP requests. (default:
[latency, requests, throughput])
In this tutorial, we showed you how to install Bencher, a benchmarking tool, on Debian latest. Bencher is a powerful tool to test and analyze the performance of HTTP servers. Use it wisely, and you're good to go!
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!