如何对 ORM 数据驱动的网站进行压力测试?

发布于 2024-10-03 20:18:18 字数 224 浏览 7 评论 0原文

我习惯于在非常好的服务器上为极少量的并发用户(通常不超过 10 个)开发私有应用程序,因此我从未因对​​我的应用程序进行压力测试而受到压力。话虽如此,我想更好地掌握我的应用程序。

仅供参考,我的所有网站都基于 ASP.NET 3.5 (WebForms)、NHibernate(特别对使用大量并发会话进行测试感兴趣)作为选择的 ORM,并且需要 Active Directory 身份验证。

提前致谢。

I'm used to developing private applications for very small amount of concurrent users (usually no more than 10) on very good servers, so I have never been pressed about stress testing my applications. That being said, this is something I want to have a better grasp on my applications.

FYI, all of my websites are based on ASP.NET 3.5 (WebForms), NHibernate (specially interested in testing it with numerous concurrent sessions) as the ORM of choice and require Active Directory authentication.

Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

无所的.畏惧 2024-10-10 20:18:18

在紧要关头,您可以创建一个 selenium RC 集群,其中多台机器以不同用户身份登录运行IE。想想看,如果您有能力实现这一目标,这可能是最现实的测试。 。 。

In a pinch, you could do a selenium RC cluster with multiple machines logged in as different users running IE. Come to think of it, that is perhaps the most realistic test if you have the boxes to pull it off . . .

清秋悲枫 2024-10-10 20:18:18

Visual Studio 2010 Ultimate 版是 ASP.Net 的最佳选择,您不仅能够对应用程序进行负载测试,还可以创建 性能会话来分析应用程序。这对于了解最常调用的代码非常有用,尤其是数据库调用。

由于 Web 测试能够转换为 C# 代码,因此您将能够编写一些由数据库副本驱动的复杂测试,以帮助完成一些有趣的场景。

Visual Studio 2010 Ultimate 能够让多达 250 个虚拟用户同时运行,这可能足以满足您的需求。

Visual Studio 2010 Ultimate edition is the way to go for ASP.Net, not only do you get the ability to load test the application, you can also create performance sessions to profile the application. This is really good for getting a handle on what code is getting called most often, especially database calls.

As the web tests are able to be converted to C# code, you will be able to code up some complex tests driven by a copy of your database to help get some interesting scenarios done as well.

Visual Studio 2010 Ultimate comes with the ability to get up to 250 virtual users running simulatenously, probably enough for your needs.

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