有哪些用于性能测试 SharePoint Web 部件和控件的好技术?
这是一个关于特定于 SharePoint Web 部件和控件的性能测试的问题(尽管标准 ASP.NET 方法也适用)。 我想知道有哪些好的技术,考虑以下因素:
- 缓存(应该缓存什么以及何时缓存?)
- 负载平衡服务器(存储状态)
- 与页面其他部分的交互(例如多个 JavaScript 执行)
- 测量 CPU 使用情况特定控制
- 呈现的页面大小
This is a question about performance testing specific to SharePoint web parts and controls (although standard ASP.NET methods would be applicable as well). I'm wondering what are some good techniques, considering factors such as:
- caching (what and when should you cache?)
- load balanced servers (storing state)
- interaction with other parts of the page (e.g. multiple JavaScript execution)
- measuring CPU usage for a particular control
- rendered page size
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我推荐 Visual Studio Test Suite 2008 SP1。 我们在索引服务器上使用了测试代理,测试控制器在安装了 Visual Studio 的开发人员桌面上运行。
可以模拟浏览器缓存,并且我们发现我们自己的服务器缓存存在错误,其中缓存实际上不起作用。
负载平衡服务器很容易使用,因为您可以模拟一系列 IP 地址。 您确实需要能够为运行测试的计算机分配一系列 IP 地址,并且只能调整 IP 地址的最后一个八位字节。 每个 Web 前端的统计信息都可以添加到测试生成的 perfmon 统计信息中。
如果需要,您可以模拟页面不同部分的点击,但场景越复杂,就越难做到完美。
CPU 和其他统计数据测量效果非常好。 所有测试结果都可以添加到数据库中,并且负载测试期间和之后的测试图表非常好。
可以将注释添加到每个测试运行中,以便您在需要查看之前运行的测试结果时可以轻松识别它们。
请注意,随着时间的推移,结果会迅速增加。
I recommend Visual Studio Test Suite 2008 with SP1. We have used a test agent on our indexing server with the test controller running on the developers desktop with Visual Studio installed.
It is possible to simulate browser caching and we have found errors with our own server caching where the caching was not actually working.
Load balanced servers are easy to work with as you can simulate a range of ip addresses. You do need to be able to assign a range of ip addresses to the machine running the tests and only the last octet of the ip address is able to be adjusted. The stats on each web front end can be added to the perfmon stats generated by the test.
You can simulate clicks on different parts of the page if required, but the more complex the scenario the harder it is to get perfect.
The CPU and other stats measuring is great. All the test results can be added to a database and the charting of the tests during and after the load test is really good.
Comments can be added to each test run so you can identify them easily when you need to view the results of tests that have been run before.
Be warned that the results can quickly add up in size over time.