測試
測試開始后,軟件會自動進行各項測試,並為其評分,測試完成后,將會輸出一個測試報表結果,以我的 Dell R410,配置為 E5507 16G內存,146G SAS Raid 0為例,結果如下:
======================================================================== BYTE UNIX Benchmarks (Version 5.1.3) System: WosDevServer: GNU/Linux OS: GNU/Linux -- 4.4.0-119-generic -- #143-Ubuntu SMP Mon Apr 2 16:08:24 UTC 2018 Machine: x86_64 (x86_64) Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8") CPU 0: Intel(R) Xeon(R) CPU E5507 @ 2.27GHz (4522.0 bogomips) Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization CPU 1: Intel(R) Xeon(R) CPU E5507 @ 2.27GHz (4521.8 bogomips) Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization CPU 2: Intel(R) Xeon(R) CPU E5507 @ 2.27GHz (4522.0 bogomips) Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization CPU 3: Intel(R) Xeon(R) CPU E5507 @ 2.27GHz (4521.8 bogomips) Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization CPU 4: Intel(R) Xeon(R) CPU E5507 @ 2.27GHz (4522.0 bogomips) Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization CPU 5: Intel(R) Xeon(R) CPU E5507 @ 2.27GHz (4521.8 bogomips) Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization CPU 6: Intel(R) Xeon(R) CPU E5507 @ 2.27GHz (4522.0 bogomips) Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization CPU 7: Intel(R) Xeon(R) CPU E5507 @ 2.27GHz (4521.8 bogomips) Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization 09:42:18 up 16:37, 1 user, load average: 0.58, 0.14, 0.05; runlevel 5 ------------------------------------------------------------------------ Benchmark Run: Wed Apr 18 2018 09:42:18 - 10:10:35 8 CPUs in system; running 1 parallel copy of tests Dhrystone 2 using register variables 22890258.0 lps (10.0 s, 7 samples) Double-Precision Whetstone 2974.5 MWIPS (9.9 s, 7 samples) Execl Throughput 2009.3 lps (30.0 s, 2 samples) File Copy 1024 bufsize 2000 maxblocks 356519.6 KBps (30.0 s, 2 samples) File Copy 256 bufsize 500 maxblocks 99637.7 KBps (30.0 s, 2 samples) File Copy 4096 bufsize 8000 maxblocks 962479.7 KBps (30.0 s, 2 samples) Pipe Throughput 511868.4 lps (10.0 s, 7 samples) Pipe-based Context Switching 123716.9 lps (10.0 s, 7 samples) Process Creation 3374.2 lps (30.0 s, 2 samples) Shell Scripts (1 concurrent) 6240.7 lpm (60.0 s, 2 samples) Shell Scripts (8 concurrent) 3324.5 lpm (60.0 s, 2 samples) System Call Overhead 509821.0 lps (10.0 s, 7 samples) System Benchmarks Index Values BASELINE RESULT INDEX Dhrystone 2 using register variables 116700.0 22890258.0 1961.5 Double-Precision Whetstone 55.0 2974.5 540.8 Execl Throughput 43.0 2009.3 467.3 File Copy 1024 bufsize 2000 maxblocks 3960.0 356519.6 900.3 File Copy 256 bufsize 500 maxblocks 1655.0 99637.7 602.0 File Copy 4096 bufsize 8000 maxblocks 5800.0 962479.7 1659.4 Pipe Throughput 12440.0 511868.4 411.5 Pipe-based Context Switching 4000.0 123716.9 309.3 Process Creation 126.0 3374.2 267.8 Shell Scripts (1 concurrent) 42.4 6240.7 1471.9 Shell Scripts (8 concurrent) 6.0 3324.5 5540.8 System Call Overhead 15000.0 509821.0 339.9 ======== System Benchmarks Index Score 768.0 ------------------------------------------------------------------------ Benchmark Run: Wed Apr 18 2018 10:10:35 - 10:38:54 8 CPUs in system; running 8 parallel copies of tests Dhrystone 2 using register variables 181646934.4 lps (10.0 s, 7 samples) Double-Precision Whetstone 23770.7 MWIPS (9.9 s, 7 samples) Execl Throughput 17323.7 lps (29.9 s, 2 samples) File Copy 1024 bufsize 2000 maxblocks 622988.4 KBps (30.0 s, 2 samples) File Copy 256 bufsize 500 maxblocks 167131.8 KBps (30.0 s, 2 samples) File Copy 4096 bufsize 8000 maxblocks 1762630.6 KBps (30.0 s, 2 samples) Pipe Throughput 4066846.5 lps (10.0 s, 7 samples) Pipe-based Context Switching 1014461.5 lps (10.0 s, 7 samples) Process Creation 43249.7 lps (30.0 s, 2 samples) Shell Scripts (1 concurrent) 40928.1 lpm (60.0 s, 2 samples) Shell Scripts (8 concurrent) 5324.5 lpm (60.0 s, 2 samples) System Call Overhead 3115517.6 lps (10.0 s, 7 samples) System Benchmarks Index Values BASELINE RESULT INDEX Dhrystone 2 using register variables 116700.0 181646934.4 15565.3 Double-Precision Whetstone 55.0 23770.7 4322.0 Execl Throughput 43.0 17323.7 4028.8 File Copy 1024 bufsize 2000 maxblocks 3960.0 622988.4 1573.2 File Copy 256 bufsize 500 maxblocks 1655.0 167131.8 1009.9 File Copy 4096 bufsize 8000 maxblocks 5800.0 1762630.6 3039.0 Pipe Throughput 12440.0 4066846.5 3269.2 Pipe-based Context Switching 4000.0 1014461.5 2536.2 Process Creation 126.0 43249.7 3432.5 Shell Scripts (1 concurrent) 42.4 40928.1 9652.9 Shell Scripts (8 concurrent) 6.0 5324.5 8874.1 System Call Overhead 15000.0 3115517.6 2077.0 ======== System Benchmarks Index Score 3702.0 ======= Script description and score comparison completed! =======
為了進行對比,我同時也在我的開發機上運行了一個虛擬機進行測試,虛擬機設置了單核 CPU,2G 內存,測試結果如下:
======================================================================== BYTE UNIX Benchmarks (Version 5.1.3) System: ubuntu: GNU/Linux OS: GNU/Linux -- 4.4.0-119-generic -- #143-Ubuntu SMP Mon Apr 2 16:08:24 UTC 2018 Machine: x86_64 (x86_64) Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8") CPU 0: Intel(R) Core(TM) i5-4570 CPU @ 3.20GHz (6411.1 bogomips) x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET 10:45:37 up 2 min, 1 user, load average: 0.22, 0.07, 0.02; runlevel 5 ------------------------------------------------------------------------ Benchmark Run: Wed Apr 18 2018 10:45:37 - 11:13:49 1 CPU in system; running 1 parallel copy of tests Dhrystone 2 using register variables 40453839.7 lps (10.0 s, 7 samples) Double-Precision Whetstone 2933.5 MWIPS (9.9 s, 7 samples) Execl Throughput 5999.9 lps (30.0 s, 2 samples) File Copy 1024 bufsize 2000 maxblocks 818195.6 KBps (30.0 s, 2 samples) File Copy 256 bufsize 500 maxblocks 246488.8 KBps (30.0 s, 2 samples) File Copy 4096 bufsize 8000 maxblocks 1618077.0 KBps (30.0 s, 2 samples) Pipe Throughput 1298128.5 lps (10.0 s, 7 samples) Pipe-based Context Switching 218737.5 lps (10.0 s, 7 samples) Process Creation 15710.1 lps (30.0 s, 2 samples) Shell Scripts (1 concurrent) 10794.3 lpm (60.0 s, 2 samples) Shell Scripts (8 concurrent) 1405.5 lpm (60.0 s, 2 samples) System Call Overhead 1217286.8 lps (10.0 s, 7 samples) System Benchmarks Index Values BASELINE RESULT INDEX Dhrystone 2 using register variables 116700.0 40453839.7 3466.5 Double-Precision Whetstone 55.0 2933.5 533.4 Execl Throughput 43.0 5999.9 1395.3 File Copy 1024 bufsize 2000 maxblocks 3960.0 818195.6 2066.2 File Copy 256 bufsize 500 maxblocks 1655.0 246488.8 1489.4 File Copy 4096 bufsize 8000 maxblocks 5800.0 1618077.0 2789.8 Pipe Throughput 12440.0 1298128.5 1043.5 Pipe-based Context Switching 4000.0 218737.5 546.8 Process Creation 126.0 15710.1 1246.8 Shell Scripts (1 concurrent) 42.4 10794.3 2545.8 Shell Scripts (8 concurrent) 6.0 1405.5 2342.5 System Call Overhead 15000.0 1217286.8 811.5 ======== System Benchmarks Index Score 1435.0 ======= Script description and score comparison completed! =======
由於虛擬機僅配置了單核 CPU,因此這里只有 1 parallel
單線程測試,並沒有上面服務器中的多線程測試。我們可以從兩份結果對比得出,由於不同世代的 CPU 技術差異,這里的 I5-4570 的單核表現與 XEON-E5507相比幾乎是性能翻倍。
評估
以上的測試給出的分數,我們可以作為評估的依據,但實際決策中,還需要考慮其他的情況。如服務器的安放、穩定性以及一起其他的功能,比如 Dell 的服務器支持 iDrac 遠程控制,可以通過網絡控制服務器開關、重啟以及監控設備運行情況等。如果單從運算性能看,可能會組裝一台 i5 的電腦性能更好,但如遇停電、或者死機的情況,沒有遠程控制維護服務器,那么就需要考慮其他的處理方案。