51Testing软件测试论坛

标题: 请教C++程序的性能测试问题 [打印本页]

作者: xhyjiang    时间: 2005-11-1 15:55
标题: 请教C++程序的性能测试问题
我们想对一个用C++编程的桌面应用程序进行评测,评估其对同时运行在本机的其他WINDOWS应用程序(WORD等)的影响(主要是速度的影响),请问各位应该如何评测?有没有一些工具可以帮助实现?

谢谢
作者: linkage    时间: 2005-11-1 16:25
对其他Windows应用程序的影响?
这个问题困难啊,要分清是哪方面的影响
如:
1.如果你的程序CPU占用很大,那么其他应用程序打开时将非常缓慢
2.如果你的程序占用了非常多的物理内存,那么其他应用程序将使用虚拟内存,运行也将会变的缓慢
等等

最好先详细说明需要做的事情,然后再考虑用何种工具来进行评测。
作者: xhyjiang    时间: 2005-11-2 00:50
Hi linkage, Thanks for your reply. First of all, sorry for typing english here because I don't have Chinese OS in my company's machine.

Regarding my quesiton, the system under test is a C++ application running in the windows 2000/XP platform. It will occupy as much CPU usage as it can (up to 99% normally). However, it will also low the priority of using the CPU whenever there is any other application competing with it on CPU. For instance, when Word is launched, the CPU usage of my application will decrease its CPU usage and let Word application have enough CPU time to be run. Once the Word is run, any free CPU time will be taken and used by my application again.

In general, my application doesn't have big impact to other application (except 3D application that will use lots of CPU). However, I just wonder if there is any way to help me measure the impact of my application to other concurrent applications.

The Performance monitor in the Task Manger of Windows OS is not good enough as it can only give us a big picture of CPU / Momery usuage. Is it possible to get exact launch (or other operations, i.e. printing in the Word) time of other applications before and after my application is run?

Thanks all for your kindly help
作者: LinkLJ    时间: 2006-4-29 13:51
Intel VTune Performance Analyzer is helpful.
http://www.intel.com/cd/software ... eng/vtune/index.htm




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2