Http load test tool for variable URLs

sura2k picture sura2k · Jan 12, 2012 · Viewed 21.4k times · Source

Any one know about a load test tool like "Apache Bench" to send variable URLs. (Same server, but different Query Strings)

For example,

ab -text list.txt -n 1000 http://test.com/search?

list.txt

name=abc&age=10
name=pqr&age=20
anything=anything&age=30
......

Note : Actually there is no such option -text in apache bench

Answer

Julian Hille picture Julian Hille · Nov 9, 2014

Try siege as it offers what you need. You could create url files that use bash like parameters so that you don't have to repeat yourself. It also support basic auth, POST, a login url and much more.

siege -f urls.txt 

urls.txt:

URL=https://www.example.com/
$(URL)index.php?ab=1
$(URL)site.php?different=12

You can find more here: http://www.joedog.org/siege-home/