Menu

ApacheBench

May 26, 2017 - Linux

Link https://httpd.apache.org/docs/2.4/programs/ab.html

Installation

Refresh the package database.

sudo apt-get update

Install the apache2-utils package to get access to ApacheBench.

apt-get install apache2-utils

Sample tests

ab -n 50 -c 10 -H 'origin: *' http://yahoo.com/
ab -n 10 -H 'origin: *' http://cors-anywhere.herokuapp.com/


Plotting outcome with gnuplot – http://gnuplot.info/

SOURCE: http://infoheap.com/ab-apache-bench-load-testing/

ab -n 500 -c 100 -g out.data http://yahoo.com/