views:

666

answers:

2

Hi folks,

I'm wanting to find out how many requests/sec my asp.net mvc site (and asp.net mvc api) can handle. I've googled for some help and stumbled on this great slide show which talks about exactly the things i'm after. They also use a product called ApacheBench to hit the website. That application's website list it as a unix-type product. If it's a perl app, I'm also not going to install perl OR apache.

I'm using Visual Studion 2008 Team Suit edition on Windows 7 RTM.

Does anyone know of any programs I could use to help figure out what are the response times for 'x' number of hits to a url, etc?

thanks :)

A: 

You could use cURL. They've got a windows binary here

You could also check out this page listing open source performance testing tools, including some Windows specific ones, like dieseltest

Edit, added curl example

curl -s "http://example.com/index.html?[1-1000]"

This will retrieve the URL 1000 times. My DOS scripting isn't up to much so I don't know how to time this. If this were a *nix shell I'd just do

time curl -s "http://example.com/index.html?[1-1000]"
Glen
cURL looks pretty good. um .. would you know how i could use it to grab see the response time for .. say 100 concurrent hits to a URL/server?
Pure.Krome
@Pure.Krome, I don't know an easy way to get curl to read the URL's concurrently. You should be able to script it though
Glen
+2  A: 

There's a Windows binary for Apache Bench. You could download Apache Web Server for Windows and extract ab.exe and abs.exe from it.

Darin Dimitrov
does ab.exe require apache to be installed? what's the difference between ab.exe and abs.exe ? also, can someone upload the ab.exe and abs.exe to a file upload site ? :)
Pure.Krome
No, they are completely. I've extracted them from the MSI without installing Apache and they work fine. As to uploading the executables to a site there might be some licensing issues.
Darin Dimitrov
+1 - I've used ab.exe extensively. It's very easy to use and provides useful metrics.
Ben Scheirman
You could use this tool http://blogs.pingpoet.com/overflow/archive/2005/11/16/14995.aspx to extract files from MSI without needing to install anything.
Darin Dimitrov
@Darin: awesome - i'll give this a check right now also :)
Pure.Krome
@Darin (again). Bummer : i keep getting this error when i'm using it :( "Benchmarking www.google.com.au [through http:0] (be patient)...apr_sockaddr_info_get() for http: Unknown error (10105)" I've only extracted the ab.exe program from the msi, manually. :( :(
Pure.Krome