安裝: 1. UnixBench from version 5.1 on has both system and graphics tests. If you want to use the graphic tests, edit the Makefile and make sure that th ...
安裝: 1. UnixBench from version 5.1 on has both system and graphics tests. If you want to use the graphic tests, edit the Makefile and make sure that the line "GRAPHIC_TESTS = defined" is not commented out; then check that the "GL_LIBS" definition is OK for your system. Also make sure that the "x11perf" command is on your search path. If you don't want the graphics tests, then comment out the "GRAPHIC_TESTS = defined" line. Note: comment it out, don't set it to anything. 2. Do "make". 3. Do "Run" to run the system test; "Run graphics" to run the graphics tests; "Run gindex" to run both. 報錯: [root@WQ UnixBench]# ./Run Can't locate Time/HiRes.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at ./Run line 6. BEGIN failed--compilation aborted at ./Run line 6. 安裝perl-Time-HiRes包
測試項目:
Dhrystone測試
測試聚焦在字元串處理,沒有浮點運算操作。這個測試用於測試鏈接器編譯、代碼優化、記憶體緩存、等待狀態、整數數據類型等,硬體和軟體設計都會非常大的影響測試結果。
Whetstone 測試
這項測試項目用於測試浮點運算效率和速度。這項測試項目包含若幹個科學計算的典型性能模塊,包含大量的C語言函數,sin cos sqrt exp和日誌以及使用整數和浮點的數學操作。包含數組訪問、條件分支和過程調用。
Execl Throughput(execl 吞吐,這裡的execl是類unix系統非常重要的函數,非辦公軟體的execl)測試
這項測試測試每秒execl函數調用次數。execl是 exec函數家族的一部分,使用新的圖形處理代替當前的圖形處理。有許多命令和前端的execve()函數命令非常相似。
File Copy測試
這項測試衡量文件數據從一個文件被傳輸到另外一個,使用大量的緩存。包括文件的讀、寫、複製測試,測試指標是一定時間內(預設是10秒)被重寫、讀、複製的字元數量。
Pipe Throughput(管道吞吐)測試
pipe是簡單的進程之間的通訊。管道吞吐測試是測試在一秒鐘一個進程寫512比特到一個管道中並且讀回來的次
數。管道吞吐測試和實際編程有差距。
Pipe-based Context Switching (基於管道的上下文交互)測試
這項測試衡量兩個進程通過管道交換和整數倍的增加吞吐的次數。基於管道的上下文切換和真實程式很類似。測試程式產生一個雙向管道通訊的子線程。
Process Creation(進程創建)測試
這項測試衡量一個進程能產生子線程並且立即退出的次數。新進程真的創建進程阻塞和記憶體占用,所以測試程式直接使用記憶體帶寬。這項測試用於典型的比較大量的操作系統進程創建操作。
Shell Scripts測試
shell腳本測試用於衡量在一分鐘內,一個進程可以啟動並停止shell腳本的次數,通常會測試1,2, 3, 4, 8 個shell腳本的共同拷貝,shell腳本是一套轉化數據文件的腳本。
System Call Overhead (系統調用消耗)測試
這項測試衡量進入和離開系統內核的消耗,例如,系統調用的消耗。程式簡單重覆的執行getpid調用(返回調用的進程id)。消耗的指標是調用進入和離開內核的執行時間。
Graphical Tests(圖形)測試
由"ubgears"程式組成,測試非常粗的2D和3D圖形性能,尤其是3D測試非常有限。測試結果和硬體,系統合適的驅動關係很大。
實例:
VPS配置(2core i5-4300U 1.5G)
[root@WQ UnixBench]# ./Run
make all
make[1]: Entering directory `/home/soft/UnixBench'
Checking distribution of files
./pgms exists
./src exists
./testdir exists
./tmp exists
./results exists
make[1]: Leaving directory `/home/soft/UnixBench'
sh: 3dinfo: command not found
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
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
2 x Dhrystone 2 using register variables 1 2 3 4 5 6 7 8 9 10
2 x Double-Precision Whetstone 1 2 3 4 5 6 7 8 9 10
2 x Execl Throughput 1 2 3
2 x File Copy 1024 bufsize 2000 maxblocks 1 2 3
2 x File Copy 256 bufsize 500 maxblocks 1 2 3
2 x File Copy 4096 bufsize 8000 maxblocks 1 2 3
2 x Pipe Throughput 1 2 3 4 5 6 7 8 9 10
2 x Pipe-based Context Switching 1 2 3 4 5 6 7 8 9 10
2 x Process Creation 1 2 3
2 x System Call Overhead 1 2 3 4 5 6 7 8 9 10
2 x Shell Scripts (1 concurrent) 1 2 3
2 x Shell Scripts (8 concurrent) 1 2 3
========================================================================
BYTE UNIX Benchmarks (Version 5.1.3)
System: WQ: GNU/Linux
OS: GNU/Linux -- 2.6.32-573.el6.x86_64 -- #1 SMP Thu Jul 23 15:44:03 UTC 2015
Machine: x86_64 (x86_64)
Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
CPU 0: Intel(R) Core(TM) i5-4300U CPU @ 1.90GHz (4988.4 bogomips)
Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
CPU 1: Intel(R) Core(TM) i5-4300U CPU @ 1.90GHz (4988.4 bogomips)
Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
08:46:14 up 7:41, 3 users, load average: 0.11, 0.12, 0.06; runlevel 5
------------------------------------------------------------------------
Benchmark Run: Thu Dec 10 2015 08:46:14 - 09:14:29
2 CPUs in system; running 1 parallel copy of tests
Dhrystone 2 using register variables 28928010.1 lps (10.0 s, 7 samples)
Double-Precision Whetstone 3117.7 MWIPS (10.0 s, 7 samples)
Execl Throughput 1589.3 lps (29.9 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks 660058.9 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 206451.1 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 1741835.1 KBps (30.0 s, 2 samples)
Pipe Throughput 1335027.2 lps (10.0 s, 7 samples)
Pipe-based Context Switching 287247.6 lps (10.0 s, 7 samples)
Process Creation 4841.9 lps (30.0 s, 2 samples)
Shell Scripts (1 concurrent) 4695.5 lpm (60.0 s, 2 samples)
Shell Scripts (8 concurrent) 937.5 lpm (60.0 s, 2 samples)
System Call Overhead 2253652.3 lps (10.0 s, 7 samples)
System Benchmarks Index Values BASELINE RESULT INDEX
Dhrystone 2 using register variables 116700.0 28928010.1 2478.8
Double-Precision Whetstone 55.0 3117.7 566.8
Execl Throughput 43.0 1589.3 369.6
File Copy 1024 bufsize 2000 maxblocks 3960.0 660058.9 1666.8
File Copy 256 bufsize 500 maxblocks 1655.0 206451.1 1247.4
File Copy 4096 bufsize 8000 maxblocks 5800.0 1741835.1 3003.2
Pipe Throughput 12440.0 1335027.2 1073.2
Pipe-based Context Switching 4000.0 287247.6 718.1
Process Creation 126.0 4841.9 384.3
Shell Scripts (1 concurrent) 42.4 4695.5 1107.4
Shell Scripts (8 concurrent) 6.0 937.5 1562.4
System Call Overhead 15000.0 2253652.3 1502.4
========
System Benchmarks Index Score 1079.2
------------------------------------------------------------------------
Benchmark Run: Thu Dec 10 2015 09:14:29 - 09:42:46
2 CPUs in system; running 2 parallel copies of tests
Dhrystone 2 using register variables 47598094.8 lps (10.0 s, 7 samples)
Double-Precision Whetstone 5934.9 MWIPS (9.9 s, 7 samples)
Execl Throughput 6089.6 lps (29.9 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks 819331.8 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 221912.0 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 2318841.9 KBps (30.0 s, 2 samples)
Pipe Throughput 2133914.2 lps (10.0 s, 7 samples)
Pipe-based Context Switching 480283.6 lps (10.0 s, 7 samples)
Process Creation 17828.4 lps (30.0 s, 2 samples)
Shell Scripts (1 concurrent) 7151.6 lpm (60.0 s, 2 samples)
Shell Scripts (8 concurrent) 957.1 lpm (60.1 s, 2 samples)
System Call Overhead 3249868.5 lps (10.0 s, 7 samples)
System Benchmarks Index Values BASELINE RESULT INDEX
Dhrystone 2 using register variables 116700.0 47598094.8 4078.7
Double-Precision Whetstone 55.0 5934.9 1079.1
Execl Throughput 43.0 6089.6 1416.2
File Copy 1024 bufsize 2000 maxblocks 3960.0 819331.8 2069.0
File Copy 256 bufsize 500 maxblocks 1655.0 221912.0 1340.9
File Copy 4096 bufsize 8000 maxblocks 5800.0 2318841.9 3998.0
Pipe Throughput 12440.0 2133914.2 1715.4
Pipe-based Context Switching 4000.0 480283.6 1200.7
Process Creation 126.0 17828.4 1415.0
Shell Scripts (1 concurrent) 42.4 7151.6 1686.7
Shell Scripts (8 concurrent) 6.0 957.1 1595.1
System Call Overhead 15000.0 3249868.5 2166.6
========
System Benchmarks Index Score 1802.3