Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Http load test tool for variable URLs

Tags:

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

like image 200
sura2k Avatar asked Jan 12 '12 10:01

sura2k


People also ask

What is Vegeta tool?

Vegeta is an HTTP load testing tool written in Go that can be used as a command in a command-line interface or as a library. The program tests how an HTTP-based application behaves when multiple users access it at the same time by generating a background load of GET requests.


2 Answers

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/

like image 92
Julian Hille Avatar answered Oct 02 '22 04:10

Julian Hille


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.

like image 36
Yuvaraj Loganathan Avatar answered Oct 02 '22 02:10

Yuvaraj Loganathan