Kevin 教程 1,634 次浏览 8条评论


UnixBench 安装

1. 下载UnixBench测试工具,目前最新版本是5.1.3。

wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/byte-unixbench/UnixBench5.1.3.tgz

如果Google Code下载地址用不了,可以使用这个Amazon地址,或者官方Github下载。

2. 下载后解压进入文件目录,然后编译。

tar -zxvf UnixBench5.1.3.tgz
cd UnixBench
make all


make: gcc: Command not found
make: *** [pgms/arithoh] Error 127


yum install gcc
apt-get install gcc

3. UnixBench默认不测试显卡图像性能(VPS没必要)。如果Linux桌面版要测试,编译前打开目录下的Makefile文件,找到47行,取消里面的GRAPHIC_TESTS = defined参数注释。

UnixBench 测试

安装后运行./Run命令就可以开始标准测试,整个过程大概需时二十来分钟。如果希望同时测试图像性能则用./Run gindex命令(测试时间大约会增加三分之二)。为避免SSH连线超时断开,建议开个screen再测。


-bash: ./Run: /usr/bin/perl: bad interpreter: No such file or directory


yum install perl
apt-get install perl
UnixBench 其它参数(通过追加参数可改变测试方式)
./Run -q 以安静模式运行测试,之后可以文件方式查看结果(下文会提及)
./Run -v 以详细模式运行测试,实时打印测试内容到屏幕
./Run -i <count> -i <count>为每个项目设置重复测试次数,最少为1,默认是10
./Run -c <n> 为每个项目并行运行<n>个副本(图像性能测试不支持多副本运行)
./Run -c <n> <…>  <…>指定测试模式(包含哪些测试项目),默认为标准模式“index”,更多模式请查看USAGE文件说明

UnixBench 结果分析



测试项目 测试内容
Dhrystone 该测试侧重字符串处理,没有浮点运算。结果受硬件设计和软件优化影响大
Whetstone 测试浮点运算速度和效率,其中包含几个典型的科学计算性能模块
Execl Throughput 测量 execl 每秒可执行的系统调用次数
File Copy 测试数据从一个文件传输到另一个文件的传输速率
Pipe Throughput 测试每秒一个进程将512字节写入管道并读取的次数
Pipe-based Context Switching 测试每秒两个进程通过一个管道交换一个不断增长的整数次数
Process Creation 测试每秒一个进程可以创建及收回子进程的次数
Shell Scripts 测试每秒进程可以并发获取一个 shell 脚本的 n 个副本的次数,n取值为1 2 4 8
System Call Overhead 测试进入和离开操作系统内核的开销,即执行系统调用的消耗
Graphical Tests 测试显卡2D和3D图形的大概性能,结果很视乎系统是否安装适当的驱动程序

正如开头所说,UnixBench是根据基线系统产生评分数据的,预设基线系统名为“George”,是一台SPARCstation 20-61模型,拥有128MB内存,SPARC存储阵列和Solaris 2.3(各测试项基线分可查看pgms\index.base文件)。评级标准分为10.0,因此如果检测评分为520,则表示比模型快52倍。






  1. #1

    I am glad for writing to make you know what a magnificent encounter my friend’s girl gained studying your web site. She learned several pieces, which include what it’s like to possess an awesome helping nature to let other folks very easily know just exactly several multifaceted subject matter. You truly exceeded people’s expectations. Thank you for presenting these powerful, safe, explanatory and in addition fun tips on your topic to Tanya. https://zujepopoem.online/

  2. #2

    I intended to create you one little note just to give thanks as before for the fantastic information you’ve discussed at this time. It has been quite remarkably generous of people like you to give openly exactly what a number of us might have marketed as an e book to end up making some dough for themselves, most importantly given that you could possibly have done it if you ever decided. These pointers as well served like the fantastic way to fully grasp other people have similar eagerness like my own to know lots more on the topic of this issue. I am certain there are millions of more fun opportunities in the future for individuals who looked at your blog post. https://nujemznuedi.online/

  3. #3

    I wanted to send you the very little remark to finally thank you the moment again over the remarkable tactics you have shared on this page. This has been simply surprisingly open-handed with you to offer unhampered what most of us would’ve offered for sale for an ebook to help make some money on their own, precisely seeing that you might have tried it in case you desired. Those suggestions in addition worked to become good way to realize that some people have the identical keenness similar to my personal own to realize significantly more when it comes to this matter. I believe there are several more pleasant sessions up front for people who scan your site. https://nujemznuedi.online/

  4. #4

    I am commenting to let you know of the great encounter my friend’s daughter found reading your site. She figured out numerous issues, not to mention what it’s like to have a wonderful giving mindset to have men and women quite simply have an understanding of selected hard to do subject areas. You really exceeded our expectations. Many thanks for giving the insightful, safe, explanatory and as well as easy thoughts on the topic to Janet. https://azzaroelectric.com/

  5. #5

    I’m commenting to let you be aware of of the beneficial discovery my child developed browsing the blog. She came to find a lot of details, including how it is like to have a great coaching character to get certain people completely comprehend a number of complex issues. You actually did more than her desires. I appreciate you for coming up with such effective, dependable, edifying and cool guidance on that topic to Ethel. https://harrington-service.com/

  6. #6

    I am only writing to make you understand what a remarkable experience our princess undergone viewing your webblog. She picked up some things, which included what it is like to possess an ideal teaching spirit to make the mediocre ones without difficulty master specified tortuous things. You undoubtedly surpassed readers’ expected results. Thanks for rendering those useful, trustworthy, revealing as well as unique tips on your topic to Mary. https://lexaproescitalopram.com/

  7. #7

    Thanks for your own labor on this web site. My mother take interest in participating in research and it is simple to grasp why. My spouse and i notice all regarding the powerful way you produce useful thoughts via your website and in addition recommend response from the others on this subject then our own princess is undoubtedly studying a whole lot. Take pleasure in the rest of the year. You have been performing a terrific job. https://endepamitriptyline.com/

  8. #8

    I’m commenting to let you be aware of of the awesome discovery my child developed browsing the blog. She came to find a good number of details, including how it is like to have a great coaching character to get a number of people clearly completely grasp a number of advanced issues. You actually did more than her desires. I appreciate you for churning out such effective, dependable, edifying and cool guidance on that topic to Emily. https://lexaproescitalopram.com/


电邮地址用于 Gravatar 头像显示,不会被公开可见。