UnixBench是一款开源的测试 unix 系统基本性能的工具,是比较通用的测试VPS性能的工具.
UnixBench会执行一系列的测试,包括2D和3D图形系统的性能,测试的结果不仅仅是CPU,内存,磁盘为基准,还取决于硬件,操作系统版本,编译器.
UnixBench测试系统各个方面一系列的性能,然后将每个测试结果和一个基准值进行比较,得到一个索引值,所有测试项目的索引值结合在一起形成一个测试分数值.

运行UnixBench前需要安装一堆的工具:请根据你的系统来安装

make gcc gcc-c automake autoconf libtool gcc-c++ time perl-Time-HiRes SDL-devel mesa-libGL-devel

下载安装包

http://att.itzmx.com/forum.php?mod=attachment&aid=Nzk4OHw3ODJkMWZkNXwxNDgxMTU3NTQxfDB8NzAwMA%3D%3D

tar xzf UnixBench5.1.3.tgz
cd UnixBench
make
./Run

等十几分钟会出结果。

------------------------------------------------------------------------
Benchmark Run: Thu Dec 08 2016 10:20:02 - 10:48:28
8 CPUs in system; running 1 parallel copy of tests

Dhrystone 2 using register variables 36517051.9 lps (10.0 s, 7 samples)
Double-Precision Whetstone 4596.0 MWIPS (10.2 s, 7 samples)
Execl Throughput 3163.9 lps (29.6 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks 1058119.4 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 290993.2 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 2391221.5 KBps (30.0 s, 2 samples)
Pipe Throughput 2225909.8 lps (10.0 s, 7 samples)
Pipe-based Context Switching 208774.8 lps (10.0 s, 7 samples)
Process Creation 9978.1 lps (30.0 s, 2 samples)
Shell Scripts (1 concurrent) 8220.9 lpm (60.0 s, 2 samples)
Shell Scripts (8 concurrent) 2284.5 lpm (60.0 s, 2 samples)
System Call Overhead 4146761.9 lps (10.0 s, 7 samples)

System Benchmarks Index Values BASELINE RESULT INDEX
Dhrystone 2 using register variables 116700.0 36517051.9 3129.1
Double-Precision Whetstone 55.0 4596.0 835.6
Execl Throughput 43.0 3163.9 735.8
File Copy 1024 bufsize 2000 maxblocks 3960.0 1058119.4 2672.0
File Copy 256 bufsize 500 maxblocks 1655.0 290993.2 1758.3
File Copy 4096 bufsize 8000 maxblocks 5800.0 2391221.5 4122.8
Pipe Throughput 12440.0 2225909.8 1789.3
Pipe-based Context Switching 4000.0 208774.8 521.9
Process Creation 126.0 9978.1 791.9
Shell Scripts (1 concurrent) 42.4 8220.9 1938.9
Shell Scripts (8 concurrent) 6.0 2284.5 3807.6
System Call Overhead 15000.0 4146761.9 2764.5
========
System Benchmarks Index Score 1695.0

------------------------------------------------------------------------
Benchmark Run: Thu Dec 08 2016 10:48:28 - 11:20:17
8 CPUs in system; running 8 parallel copies of tests

Dhrystone 2 using register variables 122620599.9 lps (10.0 s, 7 samples)
Double-Precision Whetstone 37244.0 MWIPS (9.9 s, 7 samples)
Execl Throughput 12677.9 lps (29.8 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks 956256.4 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 275705.4 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 2500778.1 KBps (30.0 s, 2 samples)
Pipe Throughput 7386876.9 lps (10.0 s, 7 samples)
Pipe-based Context Switching 824323.6 lps (10.0 s, 7 samples)
Process Creation 27682.1 lps (30.0 s, 2 samples)
Shell Scripts (1 concurrent) 18993.7 lpm (60.0 s, 2 samples)
Shell Scripts (8 concurrent) 2696.1 lpm (60.1 s, 2 samples)
System Call Overhead 8730155.6 lps (10.0 s, 7 samples)

System Benchmarks Index Values BASELINE RESULT INDEX
Dhrystone 2 using register variables 116700.0 122620599.9 10507.3
Double-Precision Whetstone 55.0 37244.0 6771.6
Execl Throughput 43.0 12677.9 2948.4
File Copy 1024 bufsize 2000 maxblocks 3960.0 956256.4 2414.8
File Copy 256 bufsize 500 maxblocks 1655.0 275705.4 1665.9
File Copy 4096 bufsize 8000 maxblocks 5800.0 2500778.1 4311.7
Pipe Throughput 12440.0 7386876.9 5938.0
Pipe-based Context Switching 4000.0 824323.6 2060.8
Process Creation 126.0 27682.1 2197.0
Shell Scripts (1 concurrent) 42.4 18993.7 4479.6
Shell Scripts (8 concurrent) 6.0 2696.1 4493.4
System Call Overhead 15000.0 8730155.6 5820.1
========
System Benchmarks Index Score 3875.0

=========================================================================
test end
=========================================================================

参考自http://bbs.itzmx.com/thread-7000-1-1.html,谢谢原作者

04-13 18:09