有没有一种方法可以在不通过网络适配器的情况下模拟对 IIS 的请求?
我想检查单个非常短的 ASP.NET MVC3 操作与不同的操作过滤器集的性能, 我想要做到这一点的方法是用尽可能多的请求轰炸我的应用程序(一次调用可以快速准确地测量)并比较结果。
问题是这个测试的瓶颈很可能是网络适配器, 有没有办法将请求直接发送到应用程序,以便它们仍然遍历所有 IIS(7) 和应用程序调用堆栈?
I want to check the performance of a single very short ASP.NET MVC3 action with different sets of Action Filters,
The way I want to do it is by bombarding my Application with as many requests as I can generate (a single call is to fast to measure accurately) and compare the results.
Problem is that the bottleneck of this test is most likely to be the network adapter,
Is there a way to send requests straight to the application so they still go through all the IIS(7) and Application call stack?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我假设您正在谈论本地主机基准测试(如果您愿意,也可以进行压力测试)。如果您的站点 IP 已分配给以太网卡,请将其切换为 127.0.0.1。另一种选择是安装 MS LoopBack 适配器(假网卡)并将 IP 从以太网(暂时?)移动到假网卡。
I assume that you are talking about a localhost benchmark (or stress test if you prefer). If your site IP is assigned to your Ethernet card switch it to 127.0.0.1. Another option is to install the MS LoopBack Adapter (a fake network card) and move (temporarily?) the IP from the Ethernet to the fake card.