Windows 窗体应用程序的性能测试

发布于 2024-09-19 16:26:13 字数 88 浏览 7 评论 0原文

我们有一个非常旧的 Windows 窗体应用程序,它使用 .net 远程处理与服务器进行通信。

任何人都可以推荐一种方法或工具来对其进行性能测试。

We have a very old windows forms application that communicates with the server using .net remoting.

Can anyone recommend a method or a tool to performance test this.

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

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

发布评论

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

评论(2

迷荒 2024-09-26 16:26:13

上次我看到没有好的工具可以对许多用户的 Windows 应用程序进行性能测试。

您可以使用分析器来查看如果单个用户案例太慢。
如果您只有一小部分用户,大多数 UI 测试工具都可以用来记录您在几台机器上播放的脚本。

否则,您需要编写一个命令行应用程序,以与 Windows 窗体应用程序相同的方式与服务器通信,然后运行该命令行应用程序的多个副本。

或者让服务器以可以回放呼叫的方式记录所有呼叫。

过去,我曾考虑过让每个客户端以 C# 语句的形式记录对服务器的调用,然后可以对其进行编译以创建性能测试程序。


有一些系统声称可以在网络级别记录客户端和服务器之间的通信,然后多次回放。如果许多客户端将具有相同参数的一些请求发送到服务器是明智的,那么这可能会起作用,否则该工具中将有大量脚本来为每个客户端创建自定义请求。

Last time I looked there were no good tools for performance testing a windows application with many users.

You can use a profiler to see what is going on if the single user case is too slow.
If you only are about a hand full of users, most UI test tools could be used to record a script that you played back on a few machines.

Otherwise you need to write a command line application that talks to the server in the same way as the windows forms app, and then run many copies of that command line app.

Or get the server to log all calls in such a way as the calls can be played back.

In the past I have thought about getting each client to log the calls to the sever in the form of C# statements that could then be compiled to create a performance test program.


There are some systems that claims to record the communication between the client and the sever at the network level, and then play it back many times. This may work if it is sensible for lot of clients to send the some requests with the same params to the server, otherwise there will be lots of scripting within the tool to create custom requests for each client.

入怼 2024-09-26 16:26:13

要对应用程序进行性能测试,您可以使用分析器,例如 ANTS性能分析器。我不确定这是否也会分析网络通信。

或者,您可以设置性能计数器,并在以下情况下记录信息:你运行你的应用程序。

To do performance testing on the application, you can use a profiler, such as the ANTS Performance Profiler. I'm not sure if that's going to profile the network communication as well or not.

Alternatively, you can set up performance counters and record information that way when you run your app.

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