unixbench性能測試跑分工具


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/

居然是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文件中有說明)

 

 然后make

make

如果make的時候報這個錯:

 這是因為上述圖形測試的配置沒有注釋掉,而x11就是圖形界面配置,處理:yum install xorg-x11* ,如果上述的GRAPHIC_TESTS = defined注釋掉而忽略了圖形測試,就不會報這個錯

 如上圖,確定make成功,再Run

./Run 

執行Run的時候如果報:Can't locate Time/HiRes.pm in @INC

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

 

跑分結果

然后等待程序進行測試即可,這個過程可能比較漫長,請耐心等待,最后跑完將會有一個分數在底部出現,通常情況下1000分以上的VPS是性能較好的。

復制代碼
   #    #  #    #  #  #    #          #####   ######  #    #   ####   #    #
   #    #  ##   #  #   #  #           #    #  #       ##   #  #    #  #    #
   #    #  # #  #  #    ##            #####   #####   # #  #  #       ######
   #    #  #  # #  #    ##            #    #  #       #  # #  #       #    #
   #    #  #   ##  #   #  #           #    #  #       #   ##  #    #  #    #
    ####   #    #  #  #    #          #####   ######  #    #   ####   #    #

   Version 5.1.3                      Based on the Byte Magazine Unix Benchmark

   Multi-CPU version                  Version 5 revisions by Ian Smith,
                                      Sunnyvale, CA, USA
   January 13, 2011                   johantheghost 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 2018
   Machine: x86_64 (x86_64)
   Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
   CPU 0: Intel(R) Xeon(R) CPU @ 2.20GHz (4400.0 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
   CPU 1: Intel(R) Xeon(R) CPU @ 2.20GHz (4400.0 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
   CPU 2: Intel(R) Xeon(R) CPU @ 2.20GHz (4400.0 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
   CPU 3: Intel(R) Xeon(R) CPU @ 2.20GHz (4400.0 bogomips)
          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 1 parallel copy of tests

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

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   34613434.1   2966.0
Double-Precision Whetstone                       55.0       3992.3    725.9
Execl Throughput                                 43.0       2758.2    641.4
File Copy 1024 bufsize 2000 maxblocks          3960.0     596563.4   1506.5
File Copy 256 bufsize 500 maxblocks            1655.0     157148.4    949.5
File Copy 4096 bufsize 8000 maxblocks          5800.0    1993247.6   3436.6
Pipe Throughput                               12440.0     846280.4    680.3
Pipe-based Context Switching                   4000.0      66686.0    166.7
Process Creation                                126.0       9193.8    729.7
Shell Scripts (1 concurrent)                     42.4       6545.1   1543.7
Shell Scripts (8 concurrent)                      6.0       1845.8   3076.3
System 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 4 parallel copies of tests

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

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

 

 對測試項目的說明:

對以上跑分項的詳細說明參考: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.....


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM