ubuntu 下使用unixbench 这种benchmark 工具测试系统性能
生活随笔
收集整理的這篇文章主要介紹了
ubuntu 下使用unixbench 这种benchmark 工具测试系统性能
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
windows 有魯大師,linux 找到一個unixbench
1.安裝
系統(tǒng)是 ubuntu 16.04
手下下載unixbench 5.1.2,命令
wget http://soft.vpser.net/test/unixbench/unixbench-5.1.2.tar.gz解壓
tar -xzvf unixbench-5.1.2.tar.gz切換路徑
cd unixbench-5.1.2設(shè)置不用圖形化
sed -i "s/GRAPHIC_TESTS = defined/#GRAPHIC_TESTS = defined/g" ./Makefile編譯
make執(zhí)行
./Run結(jié)果:
make all make[1]: Entering directory '/home/utry/unixbench-5.1.2' Checking distribution of files ./pgms exists ./src exists ./testdir exists ./tmp exists ./results exists make[1]: Leaving directory '/home/utry/unixbench-5.1.2' sh: 3dinfo: command not found# # # # # # # ##### ###### # # #### # ## # ## # # # # # # # ## # # # # ## # # # # # ## ##### ##### # # # # ####### # # # # # ## # # # # # # # # ## # # ## # # # # # # # ## # # # ##### # # # # # ##### ###### # # #### # #Version 5.1.2 Based on the Byte Magazine Unix BenchmarkMulti-CPU version Version 5 revisions by Ian Smith,Sunnyvale, CA, USADecember 22, 2007 johantheghost at yahoo period com1 x Dhrystone 2 using register variables 1 2 3 4 5 6 7 8 9 101 x Double-Precision Whetstone 1 2 3 4 5 6 7 8 9 101 x Execl Throughput 1 2 31 x File Copy 1024 bufsize 2000 maxblocks 1 2 31 x File Copy 256 bufsize 500 maxblocks 1 2 31 x File Copy 4096 bufsize 8000 maxblocks 1 2 31 x Pipe Throughput 1 2 3 4 5 6 7 8 9 101 x Pipe-based Context Switching 1 2 3 4 5 6 7 8 9 101 x Process Creation 1 2 31 x System Call Overhead 1 2 3 4 5 6 7 8 9 101 x Shell Scripts (1 concurrent) 1 2 31 x Shell Scripts (8 concurrent) 1 2 34 x Dhrystone 2 using register variables 1 2 3 4 5 6 7 8 9 104 x Double-Precision Whetstone 1 2 3 4 5 6 7 8 9 104 x Execl Throughput 1 2 34 x File Copy 1024 bufsize 2000 maxblocks 1 2 34 x File Copy 256 bufsize 500 maxblocks 1 2 34 x File Copy 4096 bufsize 8000 maxblocks 1 2 34 x Pipe Throughput 1 2 3 4 5 6 7 8 9 104 x Pipe-based Context Switching 1 2 3 4 5 6 7 8 9 104 x Process Creation 1 2 34 x System Call Overhead 1 2 3 4 5 6 7 8 9 104 x Shell Scripts (1 concurrent) 1 2 34 x Shell Scripts (8 concurrent) 1 2 3========================================================================BYTE UNIX Benchmarks (Version 5.1.2)System: ubuntu: GNU/LinuxOS: GNU/Linux -- 4.15.0-58-generic -- #64~16.04.1-Ubuntu SMP Wed Aug 7 14:10:35 UTC 2019Machine: x86_64 (x86_64)Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")CPU 0: Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz (3984.0 bogomips)x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRETCPU 1: Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz (3984.0 bogomips)x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRETCPU 2: Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz (3984.0 bogomips)x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRETCPU 3: Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz (3984.0 bogomips)x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET10:21:59 up 2 days, 23:31, 1 user, load average: 1.02, 1.01, 0.89; runlevel 5------------------------------------------------------------------------ Benchmark Run: Mon Sep 02 2019 10:21:59 - 10:50:09 4 CPUs in system; running 1 parallel copy of testsDhrystone 2 using register variables 26208093.5 lps (10.0 s, 7 samples) Double-Precision Whetstone 3613.6 MWIPS (9.9 s, 7 samples) Execl Throughput 2262.0 lps (30.0 s, 2 samples) File Copy 1024 bufsize 2000 maxblocks 524555.7 KBps (30.0 s, 2 samples) File Copy 256 bufsize 500 maxblocks 153483.9 KBps (30.0 s, 2 samples) File Copy 4096 bufsize 8000 maxblocks 1396177.9 KBps (30.0 s, 2 samples) Pipe Throughput 897259.8 lps (10.0 s, 7 samples) Pipe-based Context Switching 76812.0 lps (10.0 s, 7 samples) Process Creation 6658.6 lps (30.0 s, 2 samples) Shell Scripts (1 concurrent) 5284.4 lpm (60.0 s, 2 samples) Shell Scripts (8 concurrent) 1550.5 lpm (60.0 s, 2 samples) System Call Overhead 841515.7 lps (10.0 s, 7 samples)System Benchmarks Index Values BASELINE RESULT INDEX Dhrystone 2 using register variables 116700.0 26208093.5 2245.8 Double-Precision Whetstone 55.0 3613.6 657.0 Execl Throughput 43.0 2262.0 526.0 File Copy 1024 bufsize 2000 maxblocks 3960.0 524555.7 1324.6 File Copy 256 bufsize 500 maxblocks 1655.0 153483.9 927.4 File Copy 4096 bufsize 8000 maxblocks 5800.0 1396177.9 2407.2 Pipe Throughput 12440.0 897259.8 721.3 Pipe-based Context Switching 4000.0 76812.0 192.0 Process Creation 126.0 6658.6 528.5 Shell Scripts (1 concurrent) 42.4 5284.4 1246.3 Shell Scripts (8 concurrent) 6.0 1550.5 2584.2 System Call Overhead 15000.0 841515.7 561.0======== System Benchmarks Index Score 905.4------------------------------------------------------------------------ Benchmark Run: Mon Sep 02 2019 10:50:09 - 11:18:44 4 CPUs in system; running 4 parallel copies of testsDhrystone 2 using register variables 85510590.5 lps (10.0 s, 7 samples) Double-Precision Whetstone 14574.0 MWIPS (11.2 s, 7 samples) Execl Throughput 7195.1 lps (30.0 s, 2 samples) File Copy 1024 bufsize 2000 maxblocks 795781.4 KBps (30.0 s, 2 samples) File Copy 256 bufsize 500 maxblocks 239085.0 KBps (30.0 s, 2 samples) File Copy 4096 bufsize 8000 maxblocks 2527023.3 KBps (30.0 s, 2 samples) Pipe Throughput 2891575.3 lps (10.0 s, 7 samples) Pipe-based Context Switching 406038.2 lps (10.0 s, 7 samples) Process Creation 14031.2 lps (30.0 s, 2 samples) Shell Scripts (1 concurrent) 12104.2 lpm (60.0 s, 2 samples) Shell Scripts (8 concurrent) 1664.1 lpm (60.0 s, 2 samples) System Call Overhead 2819570.0 lps (10.0 s, 7 samples)System Benchmarks Index Values BASELINE RESULT INDEX Dhrystone 2 using register variables 116700.0 85510590.5 7327.4 Double-Precision Whetstone 55.0 14574.0 2649.8 Execl Throughput 43.0 7195.1 1673.3 File Copy 1024 bufsize 2000 maxblocks 3960.0 795781.4 2009.5 File Copy 256 bufsize 500 maxblocks 1655.0 239085.0 1444.6 File Copy 4096 bufsize 8000 maxblocks 5800.0 2527023.3 4356.9 Pipe Throughput 12440.0 2891575.3 2324.4 Pipe-based Context Switching 4000.0 406038.2 1015.1 Process Creation 126.0 14031.2 1113.6 Shell Scripts (1 concurrent) 42.4 12104.2 2854.8 Shell Scripts (8 concurrent) 6.0 1664.1 2773.4 System Call Overhead 15000.0 2819570.0 1879.7======== System Benchmarks Index Score 2241.32.結(jié)果含義
| 測試項目 | 項目說明 | 基準線 |
| Dhrystone 2 using register variables | 測試 string handling | 116700.0lps |
| Double-Precision Whetstone | 測試浮點數(shù)操作的速度和效率 | 55.0MWIPS |
| Execl Throughput | 此測試考察每秒鐘可以執(zhí)行的 execl 系統(tǒng)調(diào)用的次數(shù) | 43.0lps |
| File Copy 1024 bufsize 2000 maxblocks | 測試從一個文件向另外一個文件傳輸數(shù)據(jù)的速率 | 3960.0KBps |
| File Copy 256 bufsize 500 maxblocks | 測試從一個文件向另外一個文件傳輸數(shù)據(jù)的速率。 | 1655.0KBps |
| File Read 4096 bufsize 8000 maxblocks | 測試從一個文件向另外一個文件傳輸數(shù)據(jù)的速率。 | 5800.0KBps |
| Pipe-based Context Switching | 測試兩個進程(每秒鐘)通過一個管道交換一個不斷增長的整數(shù)的次數(shù) | 12440.0lps |
| Pipe Throughput | 一秒鐘內(nèi)一個進程可以向一個管道寫 512 字節(jié)數(shù)據(jù)然后再讀回的次數(shù) | 4000.0lps |
| Process Creation | 測試每秒鐘一個進程可以創(chuàng)建子進程然后收回子進程的次數(shù)(子進程一定立即退出)。 | 126.0lps |
| Shell Scripts (8 concurrent) | 測試一秒鐘內(nèi)一個進程可以并發(fā)地開始一個shell 腳本的 n 個拷貝的次數(shù),n 一般取值1,2,4, | 8. 42.4lpm |
| System Call Overhead | 測試進入和離開操作系統(tǒng)內(nèi)核的代價,即一次系統(tǒng)調(diào)用的代價。 | 6.0lpm |
總結(jié)
以上是生活随笔為你收集整理的ubuntu 下使用unixbench 这种benchmark 工具测试系统性能的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: css设置单行文本超出部分点点点、多行文
- 下一篇: liu系统的混沌特性及其matlab仿真