简体   繁体   English

实施OutputCache后,如何测试ASP.NET(使用MVC 3)应用程序?

[英]How to test the ASP.NET (with MVC 3) application after implemented the OutputCache?

I have implemented recently into my ASP.NET application the OutputCache. 我最近在我的ASP.NET应用程序中实现了OutputCache。

I want to test this application by accessing 100-200 times simultaneously to see if the cache make good job. 我想通过同时访问100-200次来测试此应用程序,以查看缓存是否做得很好。

I have installed RedGate .NET Memory Profiler and ANTS Performance Profiler to see what's happens with cache. 我已经安装了RedGate .NET Memory ProfilerANTS Performance Profiler,以查看缓存会发生什么。 I see that cache occupies some size in memory and page loads faster than before implementing cache (that's normal). 我发现缓存比实施缓存之前占用了一些内存,页面加载速度更快(这是正常的)。

Can you tell me what tools I need to test my ASP.NET MVC3 application by being accessed 100-200 times simultaneously ? 您能否告诉我同时访问100-200次才能测试ASP.NET MVC3应用程序的工具? Something like server stress test . 诸如server stress test类的东西。

If I understand your question right you want to stress test your website? 如果我理解您的问题对,您想强调测试您的网站吗? You can take a look at Web Capacity Analysis Tool (WCAT) 您可以看一下Web容量分析工具(WCAT)

Also take a look at this website http://blogs.msdn.com/b/alikl/archive/2008/05/05/asp-net-performance-engineering-stress-test-your-architecture-design-and-code.aspx 还可以看看此网站http://blogs.msdn.com/b/alikl/archive/2008/05/05/asp-net-performance-engineering-stress-test-your-architecture-design-and-code .aspx

Hope this helps. 希望这可以帮助。

Have a look at Apache JMeter . 看看Apache JMeter It is a great stress tool and we use it to test our .Net applications performance on Windows Azure. 这是一个很好的压力工具,我们用它来测试Windows Azure上.Net应用程序的性能。 JMeter is one of the most popular stress testing tools that there is. JMeter是目前最受欢迎的压力测试工具之一。

You can write scripts that navigate to certain pages, and authenticate and do posts etc. Therefore you could simulate 200 connections to the page site and see what effect that has on memory usage etc. Obviously once you have made a script it is easy to re-run so it will give you a base-line for consistent analysis. 您可以编写可导航到某些页面的脚本,并对页面进行身份验证和张贴信息。因此,您可以模拟与该页面站点的200个连接,并查看对内存使用量的影响等。显然,一旦编写了脚本,就很容易重新创建该脚本。 -run,以便为您提供进行一致性分析的基准。 You can keep historic logs and see if your changes are improving load-times etc. 您可以保留历史日志,并查看您的更改是否正在改善加载时间等。

It can start many connections and then give you detailed performance reports on load times as well. 它可以启动许多连接,然后还为您提供有关加载时间的详细性能报告。 It is very easy to use. 这是非常容易使用。

I had a question about performance testing here 我在这里有关于性能测试的问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM