Forrest logo
back to the ab tool

ab:tldr:09676

ab: Execute 100 HTTP GET requests, in concurrent batches of 10, to a URL.
$ ab -n ${100} -c ${10} ${url}
try on your machine

This command is using the Apache Benchmark tool (ab) to perform load testing on a given URL.

Here's the breakdown of the command:

  • "ab" is the command to invoke the Apache Benchmark tool.
  • "-n ${100}" specifies the number of requests to be sent to the server. In this case, it is set to 100.
  • "-c ${10}" sets the concurrency level, which is the number of multiple requests to be made at the same time. Here, it is set to 10, which means 10 requests will be sent concurrently.
  • "${url}" is a placeholder for the URL of the server you want to test. This is where you will input the actual URL you want to test.

In summary, this command will run Apache Benchmark with 100 total requests and a concurrency level of 10 against the provided URL. It will simulate multiple users simultaneously accessing the server and measure its performance.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the ab tool