httperf — benchmark a host's HTTP performance
SYNOPSIS
httperf [-n num] [-c concurrency] <host>
DESCRIPTION
Fires a batch of HTTP (no-cors) requests at a host and reports the latency distribution (min, avg, p50, p90, p95, max) and the achieved throughput in requests per second.
Like ping, it can only time opaque cross-origin fetches end to end — the browser cannot expose the TLS / time-to-first-byte phases of a third-party host without a Timing-Allow-Origin header. Press Ctrl+C to stop early.
OPTIONS
-n num total requests (1 to 50, default 10) -c concurrency requests in flight at once (1 to 10, default 1)
USE CASES
- compare the response time of two hosts or two CDNs from your network;
- get a feel for the latency distribution: p90 and p95 show the slow requests that the average hides;
- see how a site behaves with a few concurrent requests (-c).
NOTES
Be gentle: this is a quick benchmark from one browser, not a load-testing tool, and it must only target sites you are allowed to test.
EXAMPLES
httperf toinel.com httperf -n 20 -c 4 geeek.org