I kept forgetting the Apache Benchmark location on CentOS servers, so for my own reference:
# /usr/local/apache/bin/ab
Apache Benchmarking is a great tool for testing Apache performance on web servers, for example running the following bash command:
# /usr/local/apache/bin/ab -n 100 -c 5 http://google.com/
This will test 100 connections (-n), limited to 5 concurrent connections (-c) on the website google.com
You can also run Apache Benchmarking straight from Mac terminal using:
# ab -n 100 -c 5 http://google.com/
Tip: make sure you end the url to test with a trailing slash or filename or the command won’t work