Question

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

Was it helpful?

Solution

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/

OTHER TIPS

You can use this following project apachebench for multiple urls Apache Bench for Multiple URL

Supported Multi URL requests for ApacheBench. You can set URL list as '-L filename' and also confirm response of document length for each requests.

from a commandline in windows:

for /F %q in (list.txt) DO ab -n 1000 https://test.com/search?%q

I don't know Apache Bench nor how it collects its data. My approach will probably start a new collection of data for each line in list.txt which is something you might not want. You'll have to aggregate the results of different runs by hand.

(to debug:

for /F %q in (list.txt) DO echo ab -n 1000 https://test.com/search?%q

which will output on the console the statement that will execute)

If you are prepared to get the Apache source code and port the patch at http://chrismiles.livejournal.com/21720.html to the current version of Apache's ab.c source (some comfort with C needed, but not much), you should get the equivalent of your -text parameter in ab (actually you have the ability to append to your requests which is good for benching POSTs where you only want to vary a subset of the parameters).

I'm currently trying this out myself, so the jury is still out... but early indicators are that this approach works nicely.

I found this SuperBenchmark tool. It is on top of Dotnet which can be installed even on Mac OS or Ubuntu server. I installed it on the latter one.

https://github.com/aliostad/SuperBenchmarker

Apache Bench for Multiple URL does not work for long URLs.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top