unixbench性能测试跑分工具

摘要:
UnixBench是一个类unix系统下的性能测试工具,一个开源工具,被广泛用与测试linux系统主机的性能所谓跑分工具,不仅各项的测试有得分,最后跑完也会有一个综合的得分,这个分数是怎么来了?其实,这个值是测试系统的测试结果与一个基线系统测试结果比较得到的指数值。源于1995年,基线系统是“George”,一个工作站:SPARCstation2061,128MBRAM,Solaris2.3,此系统的指数值被设定为10,所以,如果一个系统的最后结果分数为520,意思是指此系统比基线系统运行快52倍。

UnixBench是一个类unix系(Unix,BSD,Linux)统下的性能测试工具,一个开源工具,被广泛用与测试linux系统主机的性能

所谓跑分工具,不仅各项的测试有得分,最后跑完也会有一个综合的得分,这个分数是怎么来了?

其实,这个值是测试系统的测试结果与一个基线系统测试结果比较得到的指数值。

源于1995 年,基线系统是“George”,一个工作站:SPARCstation 20‐61,128MB RAM,Solaris2.3,此系统的指数值被设定为10,所以,如果一个系统的最后结果分数为520,意思是指此系统比基线系统运行快52 倍。

安装使用

Unixbench-5.1.2.tar.gz下载地址:http://soft.vpser.net/test/unixbench/

unixbench性能测试跑分工具第1张

居然是2009年的版本,不得不说真是够老的

执行以下命令下载和安装:

cd /usr/local
wget http://soft.vpser.net/test/unixbench/unixbench-5.1.2.tar.gz
tar zxvf unixbench-5.1.2.tar.gz
cd unixbench-5.1.2

如果不需要进行图形测试或者不在图形化界面下测试,则将Makefile文件中GRAPHIC_TESTS = defined注释掉(README文件中有说明)

unixbench性能测试跑分工具第2张

然后make

make

如果make的时候报这个错:

unixbench性能测试跑分工具第3张

这是因为上述图形测试的配置没有注释掉,而x11就是图形界面配置,处理:yum install xorg-x11* ,如果上述的GRAPHIC_TESTS = defined注释掉而忽略了图形测试,就不会报这个错

unixbench性能测试跑分工具第4张

如上图,确定make成功,再Run

./Run 

执行Run的时候如果报:Can't locate Time/HiRes.pm in @INC

unixbench性能测试跑分工具第5张

处理:yum -y install perl-Time-HiRes

跑分结果

然后等待程序进行测试即可,这个过程可能比较漫长,请耐心等待,最后跑完将会有一个分数在底部出现,通常情况下1000分以上的VPS是性能较好的。

#    #  #    #  #  #    #          #####   ######  #    #   ####   #    #
   #    #  ##   #  #   #  #           #    #  #       ##   #  #    #  #    #
   #    #  # #  #  #    ##            #####   #####   # #  #  #       ######
   #    #  #  # #  #    ##            #    #  #       #  # #  #       #    #
   #    #  #   ##  #   #  #           #    #  #       #   ##  #    #  #    #
    ####   #    #  #  #    #          #####   ######  #    #   ####   #    #

   Version 5.1.3Based on the Byte Magazine Unix Benchmark

   Multi-CPU version                  Version 5revisions by Ian Smith,
                                      Sunnyvale, CA, USA
   January 13, 2011johantheghost at yahoo period com

------------------------------------------------------------------------------Use directories for:
      * File I/O tests (named fs***) = /opt/unixbench/UnixBench/tmp
      * Results                      = /opt/unixbench/UnixBench/results
------------------------------------------------------------------------------


1 x Dhrystone 2 using register variables  1 2 3 4 5 6 7 8 9 10

1 x Double-Precision Whetstone  1 2 3 4 5 6 7 8 9 10

1 x Execl Throughput  1 2 3

1 x File Copy 1024 bufsize 2000 maxblocks  1 2 3

1 x File Copy 256 bufsize 500 maxblocks  1 2 3

1 x File Copy 4096 bufsize 8000 maxblocks  1 2 3

1 x Pipe Throughput  1 2 3 4 5 6 7 8 9 10

1 x Pipe-based Context Switching  1 2 3 4 5 6 7 8 9 10

1 x Process Creation  1 2 3

1 x System Call Overhead  1 2 3 4 5 6 7 8 9 10

1 x Shell Scripts (1 concurrent)  1 2 3

1 x Shell Scripts (8 concurrent)  1 2 3

4 x Dhrystone 2 using register variables  1 2 3 4 5 6 7 8 9 10

4 x Double-Precision Whetstone  1 2 3 4 5 6 7 8 9 10

4 x Execl Throughput  1 2 3

4 x File Copy 1024 bufsize 2000 maxblocks  1 2 3

4 x File Copy 256 bufsize 500 maxblocks  1 2 3

4 x File Copy 4096 bufsize 8000 maxblocks  1 2 3

4 x Pipe Throughput  1 2 3 4 5 6 7 8 9 10

4 x Pipe-based Context Switching  1 2 3 4 5 6 7 8 9 10

4 x Process Creation  1 2 3

4 x System Call Overhead  1 2 3 4 5 6 7 8 9 10

4 x Shell Scripts (1 concurrent)  1 2 3

4 x Shell Scripts (8 concurrent)  1 2 3

========================================================================BYTE UNIX Benchmarks (Version 5.1.3)

   System: jollypay-temp-west3-b: GNU/Linux
   OS: GNU/Linux -- 2.6.32-754.6.3.el6.x86_64 -- #1 SMP Tue Oct 9 17:27:49 UTC 2018Machine: x86_64 (x86_64)
   Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
   CPU 0: Intel(R) Xeon(R) CPU @ 2.20GHz (4400.0bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
   CPU 1: Intel(R) Xeon(R) CPU @ 2.20GHz (4400.0bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
   CPU 2: Intel(R) Xeon(R) CPU @ 2.20GHz (4400.0bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
   CPU 3: Intel(R) Xeon(R) CPU @ 2.20GHz (4400.0bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
   10:30:35 up 1 day,  2:18,  1 user,  load average: 0.00, 2.32, 3.56; runlevel 2019-09-03

------------------------------------------------------------------------Benchmark Run: Wed Sep 04 2019 10:30:35 - 10:58:40
4 CPUs in system; running 1parallel copy of tests

Dhrystone 2 using register variables       34613434.1 lps   (10.0 s, 7samples)
Double-Precision Whetstone                     3992.3 MWIPS (9.8 s, 7samples)
Execl Throughput                               2758.2 lps   (30.0 s, 2samples)
File Copy 1024 bufsize 2000 maxblocks        596563.4 KBps  (30.0 s, 2samples)
File Copy 256 bufsize 500 maxblocks          157148.4 KBps  (30.0 s, 2samples)
File Copy 4096 bufsize 8000 maxblocks       1993247.6 KBps  (30.0 s, 2samples)
Pipe Throughput                              846280.4 lps   (10.0 s, 7samples)
Pipe-based Context Switching                  66686.0 lps   (10.0 s, 7samples)
Process Creation                               9193.8 lps   (30.0 s, 2samples)
Shell Scripts (1 concurrent)                   6545.1 lpm   (60.0 s, 2samples)
Shell Scripts (8 concurrent)                   1845.8 lpm   (60.0 s, 2samples)
System Call Overhead                         770011.2 lps   (10.0 s, 7samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   34613434.1   2966.0Double-Precision Whetstone                       55.0       3992.3    725.9Execl Throughput                                 43.0       2758.2    641.4File Copy 1024 bufsize 2000 maxblocks          3960.0     596563.4   1506.5File Copy 256 bufsize 500 maxblocks            1655.0     157148.4    949.5File Copy 4096 bufsize 8000 maxblocks          5800.0    1993247.6   3436.6Pipe Throughput                               12440.0     846280.4    680.3Pipe-based Context Switching                   4000.0      66686.0    166.7Process Creation                                126.0       9193.8    729.7Shell Scripts (1 concurrent)                     42.4       6545.1   1543.7Shell Scripts (8 concurrent)                      6.0       1845.8   3076.3System Call Overhead                          15000.0     770011.2    513.3
                                                                   ========System Benchmarks Index Score                                        1026.6

------------------------------------------------------------------------Benchmark Run: Wed Sep 04 2019 10:58:40 - 11:26:50
4 CPUs in system; running 4parallel copies of tests

Dhrystone 2 using register variables       95155661.1 lps   (10.0 s, 7samples)
Double-Precision Whetstone                    13919.5 MWIPS (10.1 s, 7samples)
Execl Throughput                               9771.0 lps   (30.0 s, 2samples)
File Copy 1024 bufsize 2000 maxblocks        654810.9 KBps  (30.0 s, 2samples)
File Copy 256 bufsize 500 maxblocks          172827.2 KBps  (30.0 s, 2samples)
File Copy 4096 bufsize 8000 maxblocks       2165387.5 KBps  (30.0 s, 2samples)
Pipe Throughput                             2389790.1 lps   (10.0 s, 7samples)
Pipe-based Context Switching                 260110.9 lps   (10.0 s, 7samples)
Process Creation                              32641.6 lps   (30.0 s, 2samples)
Shell Scripts (1 concurrent)                  14169.4 lpm   (60.0 s, 2samples)
Shell Scripts (8 concurrent)                   1949.0 lpm   (60.1 s, 2samples)
System Call Overhead                        2196105.6 lps   (10.0 s, 7samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   95155661.1   8153.9Double-Precision Whetstone                       55.0      13919.5   2530.8Execl Throughput                                 43.0       9771.0   2272.3File Copy 1024 bufsize 2000 maxblocks          3960.0     654810.9   1653.6File Copy 256 bufsize 500 maxblocks            1655.0     172827.2   1044.3File Copy 4096 bufsize 8000 maxblocks          5800.0    2165387.5   3733.4Pipe Throughput                               12440.0    2389790.1   1921.1Pipe-based Context Switching                   4000.0     260110.9    650.3Process Creation                                126.0      32641.6   2590.6Shell Scripts (1 concurrent)                     42.4      14169.4   3341.8Shell Scripts (8 concurrent)                      6.0       1949.0   3248.4System Call Overhead                          15000.0    2196105.6   1464.1
                                                                   ========System Benchmarks Index Score                                        2235.2



======= Script description and score comparison completed! ======= 

跑完会有两个分数结果,一个是 1 parallel process 的结果,另一个是4 parallel process 的结果 (如果是单核只会跑一次)。两者的区别即一个是单进程跑,一个是多进程跑 。

默认测试完成后测试结果会存放在results目录

unixbench性能测试跑分工具第6张

对测试项目的说明:

unixbench性能测试跑分工具第7张

对以上跑分项的详细说明参考:https://blog.csdn.net/qq_36357820/article/details/79959445

额外说明

针对Pipe-based Context Switching测试项结果异常的问题,参考一篇博文:http://www.sohu.com/a/248896408_100113911

使用博文中提及的https://github.com/qcsuper/byte-unixbench的5.1.3版本

阿里云VM还是跑出了单项907.7的高分,gcp的VM只有166.7.....

免责声明:文章转载自《unixbench性能测试跑分工具》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇Oracle中索引的使用 索引性能优化调整Sentry 后端监控下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

随便看看

sql 加减时间

另外,MySQL中还有两个函数subdate(),subtime(),建议,用date_sub()来替代。MySQLperiod_add(P,N):日期加/减去N月。mysql˃selectperiod_add,period_add|period_add|period_add|结果|200810|20080806|MySQLperiod_diff:日期P1-...

【646】灰度图array转为RGB三通道array

可以使用两种方法:numpy可以通过cv2.cvtColor函数自行实现。灰度图像可以转换为RGB的所谓灰度图像,分成三个通道,这意味着三个通道都是相同的信息,相当于相同维度信息的重复。主要通过numpy实现。阵列,其可以类似于广播的形式实现。...

winform窗体(六)——DataGridView控件及通过此控件中实现增删改查

“,”Delete Data“,btn)==DialogResult.Yes){}V.多条件查询。如果用户没有输入任何内容或文本框为空,则查询所有内容。//设置两个常量条件stringtj1=”1=1“;stringtj2=”1=1”;//根据用户的输入更改条件。//如果用户输入名称If(name!=”“){tj1=“Namelike@name“;}//如果...

FTPClient

(iReplyCode==331||iReplyCode==230)){CloseSocketConnect();thrownewIOException(strReply.Substring(4));}if(iReplyCode!=230){SendCommand("PASS"+strRemotePass);if(!=null){SendCommand("Q...

如何修改cmd控制台默认编码为utf-8

如何修改cmd控制台默认编码为utf-81.打开cmd窗口后,在窗口顶部右击选择属性,选中选项后会看到默认编码为gbk2.然后我们在默认窗口路径内,输入chcp命令后回车936就表示gbk编码3.然后在窗口中输入chcp65001,然后回车,即可看到窗口默认编码为utf-8编码了(65001代表utf-8编码)4.上面的方法每次都要重新设置,接下来的方法是永...

SIP 协议

SIP是会话层的信令控制协议。SIP是一种类似于HTTP的基于文本的协议。SIP可以缩短应用程序,特别是高级应用程序的开发时间。由于基于IP协议的SIP使用IP网络,固定网络运营商将逐渐意识到SIP技术对他们的深远意义。随着国际电信联盟SS7标准和ITUH 323视频协议组合标准的长期存在,SIP的工作独立于底层网络传输协议和媒体。SIP的四个基本功能是定位...