有没有一种方法可以在不通过网络适配器的情况下模拟对 IIS 的请求?

发布于 2024-12-20 13:06:05 字数 173 浏览 1 评论 0原文

我想检查单个非常短的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

情未る 2024-12-27 13:06:05

我假设您正在谈论本地主机基准测试(如果您愿意,也可以进行压力测试)。如果您的站点 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文