RADIUS load
testing in Rust
radperf-rs load tests FreeRADIUS and other RADIUS servers with PAP, CHAP, and accounting traffic. It measures throughput, latency, and packet loss.
Install radperf-rs
Standalone binary
Download a binary and SHA256SUMS for Linux amd64, Linux arm64, or macOS arm64. Make the binary executable and put it on your PATH as radperf. Standalone binaries require an external FreeRADIUS dictionary.
Docker
The image includes the FreeRADIUS dictionary. Build it from a repository checkout.
docker build -t radperf .
docker run --rm radperf --version
Build from source
Requires Rust 1.85 or newer. Run this command from a repository checkout. The binary is written to target/release/radperf.
cargo build --locked --release
All-in-one RADIUS tools image
docker-radius-tools bundles RADIUS utilities, including
eapol_test, radclient, radcrypt, radeapclient, radlast, radperf,
radsecret, radsniff, radsqlrelay, radtest, radwho, radzap.
docker run --rm \
ghcr.io/miniradius/docker-radius-tools:latest \
radperf -v
Quick start
To run a PAP test with 10,000 users, point radperf at your test server and use its shared secret. Configure the server to accept user1 through user10000, each with its username as the password.
Command
radperf -d /usr/share/freeradius \
-u 10000 -s 127.0.0.1:1812 auth testing123 2>radperf.log
Response logs and errors are written to radperf.log.
Measured summary excerpt
Total sent : 10000
Total retransmits : 0
Total succeeded : 10000
Total failed : 0
Total no reply : 0
Total time (s) : 0.617
Packets/s : 16195
One loopback run with radperf-rs 0.1.1 and FreeRADIUS 3.2.7 in a Linux arm64 sandbox. FreeRADIUS loaded 10,000 users through its files module and required Message-Authenticator on the loopback client.
Benchmarking the Rust and C implementations of radperf
We benchmarked radperf-rs 0.1.1, written in Rust, and RadPerf 2.0.1, written in C, in the same QEMU Linux amd64 guest against the same minimal UDP responder. Each run sent 1,000,000 PAP Access-Request packets using the same plaintext password from the input file. The responder returned a signed Access-Accept for every request, regardless of credentials.
This benchmark compares radperf-rs and RadPerf under identical emulated loopback conditions. Measuring peak throughput requires a separate bare-metal benchmark, where both implementations may achieve substantially higher throughput.
-p | RadPerf replies/s | radperf-rs replies/s | radperf-rs / RadPerf | RadPerf p95 (µs) | radperf-rs p95 (µs) |
|---|---|---|---|---|---|
| 1 | 5,688 | 9,837 | 1.73× | 168 | 134 |
| 16 | 9,187 | 66,008 | 7.19× | 1,895 | 227 |
| 64 | 8,961 | 68,128 | 7.60× | 7,702 | 647 |
Both clients ran in quiet mode with -D enabled and no rate cap. radperf-rs used -m no to match RadPerf's 45-byte requests. Throughput was measured from the first send to the last reply.