Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to benchmark apache with delays?

What is a good way to benchmark apache with a delay between requests from a unix command line? The only benchmark tool I know from the command line is ab and it doesn't support delays.

like image 216
erotsppa Avatar asked Oct 15 '22 15:10

erotsppa


1 Answers

You could run ab through watch to delay the repeated access, but you're not going to be able to use the report summary for much.

watch -n 1 ab -n 3 http://serverfault.com/

Or run it through curl instead of ab

watch -n 0.4 curl http://serverfault.com/

More about watch: http://www.linfo.org/watch.html

like image 101
Ryan McGeary Avatar answered Oct 18 '22 23:10

Ryan McGeary