Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run Apache benchmark load-test in Windows?

what's the procedure I should follow to run a simple test on a domain www.example.com? I'm on Windows environment and have installed WAMP server 2.1.

I actually know which command I should use (Ex. ab -n 1 http://www.example.com/) but don't know where I should type it.

like image 295
Sarah Ogbonna Avatar asked Jun 09 '11 22:06

Sarah Ogbonna


People also ask

What is Apache benchmark tool?

ab is a tool for benchmarking your Apache Hypertext Transfer Protocol (HTTP) server. It is designed to give you an impression of how your current Apache installation performs. This especially shows you how many requests per second your Apache installation is capable of serving.


2 Answers

I do agree, PATH ENVIRONMENT setup manually

C:/YOUR_INSTALLATION_APACHE2/bin

Path to environment on control panel system settings.

like image 150
Faizal Pribadi Avatar answered Sep 19 '22 09:09

Faizal Pribadi


I don't know the path WampServer is installed to, so I'll just show you how I do it under WampDeveloper (which is what I use).

Run cmd.exe.

Inside...

C:
cd \WampDeveloper\Components\Apache\bin
ab -n 1 http://www.example.com/

To answer your question, you type it in the command line changed to the bin folder of your Apache folder since this is where ab.exe exists. If this folder location is in the system path, you can also just type it in anywhere (without changing paths in cmd.exe).

This 1st line changes the drive letter. Then second the path (aka working directory). The third runs ab.exe.

like image 33
rightstuff Avatar answered Sep 21 '22 09:09

rightstuff