https://static.assets-stash.eet-china.com/album/old-resources/2009/6/26/1ed23a5b-1efd-4851-af67-7454c4927109.rar
Dhrystone可以测试CPU的速度,当然最好用相同的编译器生成相同的目标代码,然后在不同的CPU上运行,测试相对性能。
在2410和270全部跑Linux,进入相同的NFS文件系统之后,不运行任何附加程序,运行同一个交叉编译生成的dhry,测试结果如下:
Mini2410
/ # ./dhry
-I- 26915 Dhrystone per second
-I- 26899 Dhrystone per second
-I- 26955 Dhrystone per second
-I- 26913 Dhrystone per second
-I- 26945 Dhrystone per second
-I- 26918 Dhrystone per second
-I- 26962 Dhrystone per second
-I- 26914 Dhrystone per second
-I- 26962 Dhrystone per second
-I- 26908 Dhrystone per second
PXA270
/ # ./dhry
-I- 118227 Dhrystone per second
-I- 118231 Dhrystone per second
-I- 118227 Dhrystone per second
-I- 118232 Dhrystone per second
-I- 118277 Dhrystone per second
-I- 118035 Dhrystone per second
-I- 118281 Dhrystone per second
-I- 118245 Dhrystone per second
-I- 118271 Dhrystone per second
-I- 118245 Dhrystone per second
附:进行该测试的原因是,使用NFS的方式在EduKit-IV的pxa270和2410上跑相同的qtopia 4.3时,发现2410下跑得更流畅,CPU占用率小得多,而270基本上满负荷。不对劲,所以作了以上测试。上面的测试是在没跑qtopia的情况下测试。
文章评论(0条评论)
登录后参与讨论