89

I want to install Apache Bench on Windows, can someone tell me which MSI to get?

I did install some MSI but it seems to have installed apache http server.

I just need to run Apache Bench, as I am testing an IIS asp.net application.

Marius Orha
  • 670
  • 1
  • 9
  • 26
Blankman
  • 259,732
  • 324
  • 769
  • 1,199

4 Answers4

165

It sounds like you don't want to install Apache, but you do want Apache Bench. May I recommend XAMPP? Download the zip or 7zip versions (much larger download than regular Apache but you won't have to install). Unzip the download.

This is where what I would recommend, and where you currently are converge. Since you already have Apache installed you should already have Apache Bench.

You will find it under

.\apache\bin\ab.exe

in the zip file, if that is what you downloaded, it will be under

.\xampp\apache\bin\ab.exe
ANeves
  • 6,219
  • 3
  • 39
  • 63
TMB
  • 4,683
  • 4
  • 25
  • 44
  • 2
    I don't have apache already installed, I just want to run ab w/o having to install apache, is this possible? I'm not using apache web server. – Blankman Sep 25 '11 at 23:04
  • 1
    @Blankman would you be kind enough to take a look at [the faq](http://stackoverflow.com/faq) – TMB Sep 26 '11 at 00:39
  • If you want to use it without the rest of XAMPP, you need to copy the whole `.\apache\bin` directory, since `ab.exe` relies on the `.dll` files there. – mnewt Jun 15 '18 at 18:07
  • The XAMPP page no longer has the zip or 7zip versions available for download. – ANeves Jan 12 '19 at 16:53
  • 3
    @ANeves they still have if you click "More downloads" you end up at their sourceforge which has still .zip/.7z https://sourceforge.net/projects/xampp/files/XAMPP%20Windows/ – Joker Oct 31 '19 at 13:02
  • Git Bash, Windows 7: `$ ./ab.exe -c 10 -n 100 'https://www.google.com/'` -> `SSL not compiled in; no https support`. – qräbnö Jun 04 '21 at 08:57
24

You can download the Apache server zip files (a lot smaller in size compared to AMPP packages) from the following site

Apache Haus Downloads

and unzip it. Find the bin folder; you will find ab.exe there.

Zombo
  • 1
  • 62
  • 391
  • 407
Matt Shams
  • 251
  • 3
  • 3
4

Here's some documentation on Using Apache HTTP Server on Microsoft Windows.

The Apache Bench is often called and refered to as ab.

Your Windows installation of Apache should contain a ab.exe and abs.exe file.

That'd be what you're looking for.

c00kiemon5ter
  • 16,994
  • 7
  • 46
  • 48
  • I believe there is a way to install ab w/o having to install apache no? – Blankman Sep 10 '11 at 18:54
  • well, I'm no expert on Apache Bench, but it probably depends on many stuff that comes with Apache's installation. It's probably possible to get Apache Bench working without installing the Apache executable, but you'd still need many things from that installation to get it up and working. I don't see it in its own bundle/package and that's probably no accident. – c00kiemon5ter Sep 12 '11 at 16:39
2

ab is an independent file, runs without apache http. so install apache http, copy ab from bin folder and uninstall http server.

a--
  • 753
  • 6
  • 15