Skip to main content

Apache Benchmarking tool. The simplest tool to perform a load testing.

# To execute 100 HTTP GET requests to a given URL:
ab -n <100> <url>

# To execute 100 HTTP GET requests, processing up to 10 requests concurrently, to given URL:
ab -n <100> -c <10> <url>

# To use keep alive:
ab -k <url>

# To set the maximum number of seconds to spend for benchmarking:
ab -t <60> <url>

# To execute 100 HTTP POST requests to a given URL, using a JSON payload from a file:
ab -n <100> -T <application/json> -p <data.json> <url>