Skip to content

Multiple URL requests for ApacheBench. You can set URL list with '-L filename'.

Notifications You must be signed in to change notification settings

aognio/apachebench-for-multi-url

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Apachebench-for-multi-url

Mirror for http://code.google.com/p/apachebench-for-multi-url/ with 'random url' fix listed here http://code.google.com/p/apachebench-for-multi-url/issues/detail?id=1

Description

Multiple URL requests for ApacheBench. You can set URL list with '-L filename'.

Pre-requisites for compilation

On Ubuntu

sudo apt-get install libapr1-dev apache2-dev libssl-dev

Compile ab-multi with random url patch

gcc -I /usr/include/apr-1.0 -I /usr/include/apache2 ab.c -o ab  -lm -lapr-1 -laprutil-1

Example Usage

ab -c 100 -v 4 -n 2000 -L urls.txt > results.txt

Known Bugs

The first URL selected per concurrent user (-c 100 - above example) will always be the first URL in the supplied file (-L urls.txt). Every subsequent URL selected will be random. So in the above example the first url will be called 100 times concurrently, then 1900 random urls will be selected from the file urls.txt. A fork fix would be appreciated.

Credit

All Credit goes to

Code License

Apache License 2.0

About

Multiple URL requests for ApacheBench. You can set URL list with '-L filename'.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 100.0%