#!/usr/bin/env bash reqs=100000 concurrency=10 url='http://swiss-igr-lb-1579447362.eu-west-1.elb.amazonaws.com/en/' fileprefix='swiss-igr' useragent="Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.1 Unic Loadtest" # apache bench with basic authentication ab -A username:password -H "User-Agent: $useragent" -n $reqs -c $concurrency -g ${fileprefix}_$(date +%F_%H%M%S)_r-${reqs}_c-${concurrency}.gnuplot $url > ${fileprefix}_$(date +%F_%H%M%S)_r-${reqs}_c-${concurrency}.log