如何测试我的 ASP.NET MVC 网站性能?
我想知道我的 asp.net mvc 站点(和 asp.net mvc api)每秒可以处理多少个请求。我已 Google 搜索< /a> 寻求一些帮助,并偶然发现了这个 很棒的幻灯片,其中讨论了正是我所追求的东西。他们还使用名为 ApacheBench 的产品来访问该网站。该应用程序的网站将其列为 Unix 类型产品。如果它是一个 perl 应用程序,我也不会安装 perl 或 apache。
我在 Windows 7 RTM 上使用 Visual Studion 2008 Team Suit 版本。
有谁知道我可以使用任何程序来帮助计算“x”次点击某个网址的响应时间等?
谢谢 :)
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 :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Apache Bench 有一个 Windows 二进制文件。您可以下载 Apache Web Server for Windows并从中提取ab.exe和abs.exe。
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.
您也可以尝试 JMeter ,我发现它非常有用,因为它具有记录请求的功能。
它还具有高级功能,例如从多台机器发送请求并从集中位置控制它。
You could also try JMeter , I found it very useful because of it's feature for recording request.
It also has got advanced features like, sending the requests from multiple machines and controlling it from a centralized location.
您可以使用 cURL。他们在此处提供了 Windows 二进制文件,
您还可以查看此页面列出了开源性能测试工具,包括一些特定于 Windows 的工具,例如 dieseltest
编辑,添加curl示例
这将检索URL 1000次。我的 DOS 脚本不太好,所以我不知道如何计时。如果这是一个 *nix shell 我会这样做
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
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