1
0
Fork 0
This repository has been archived on 2024-09-20. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
apachebench/ab.sh
Oliver Ladner 0b339c47a2 add WIP state
2024-02-19 13:45:34 +01:00

9 lines
456 B
Bash
Executable file

#!/usr/bin/env bash
reqs=100000
concurrency=10
url='https://example.org'
fileprefix='example_org'
useragent="Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.1 apachebench"
# 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