UnixBench是一个unix系统的性能分析工具。
安装和使用方法如下:
[shell]
wget
http://byte-unixbench.googlecode.com/files/unixbench-5.1.2.tar.gz
tar xzf unixbench-5.1.2.tar.gz
cd unixbench-5.1.2
[/shell]
修改Makefile文件,去掉图像测试(如果你需要测试,请忽略该步骤)
[shell]
vi Makefile
[/shell]
找到GRAPHIC_TESTS = defined这一行,注释掉,保存。
[shell]
./Run
[/shell]
然后等结果吧。
如果不注释图像测试,一般需要安装额外的包,可能遇到的问题如下:
1.缺少gcc或c++
yum install gcc gcc_c++
2.报错如/src/ubgears.c:48:22: error: X11/Xlib.h: No such file or
directory
./src/ubgears.c:49:23: error: X11/Xutil.h: No such file or
directory
./src/ubgears.c:50:24: error: X11/keysym.h: No such file or
directory
./src/ubgears.c:51:19: error: GL/gl.h: No such file or
directory
./src/ubgears.c:52:20: error: GL/glx.h: No such file or
directory
yum install xorg-x11*
3.报错如/usr/bin/ld: cannot find -lXext
ln -s /usr/lib64/libXext.so.6.4.0 /usr/lib/libXext.so
阿里云单核512M内存
新租的urpad
BYTE UNIX Benchmarks
(Version 5.1.2)
System: xxxx: GNU/Linux
OS: GNU/Linux --
2.6.32-042stab068.8 -- #1 SMP Fri Dec 7 17:06:14 MSK 2012
Machine: i686 (i386)
Language: en_US.utf8
(charmap="UTF-8", collate="UTF-8")
CPU 0: Intel(R) Xeon(R) CPU
E3-1240 V2 @ 3.40GHz (6800.4 bogomips)
Hyper-Threading, x86-64, MMX, Physical Address Ext,
SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
CPU 1: Intel(R) Xeon(R) CPU
E3-1240 V2 @ 3.40GHz (6800.4 bogomips)
Hyper-Threading, x86-64, MMX, Physical Address Ext,
SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
CPU 2: Intel(R) Xeon(R) CPU
E3-1240 V2 @ 3.40GHz (6800.4 bogomips)
Hyper-Threading, x86-64, MMX, Physical Address Ext,
SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
CPU 3: Intel(R) Xeon(R) CPU
E3-1240 V2 @ 3.40GHz (6800.4 bogomips)
Hyper-Threading, x86-64, MMX, Physical Address Ext,
SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
07:53:00 up 4
min, 1 user, load average:
0.00, 0.00, 0.00; runlevel 3
------------------------------------------------------------------------
Benchmark Run: Wed Mar 20 2013 07:53:00 - 08:21:09
4 CPUs in system; running 1 parallel copy of tests
Dhrystone 2 using register
variables 18358545.3 lps (10.0 s, 7
samples)
Double-Precision
Whetstone 3071.1 MWIPS (10.1 s, 7 samples)
Execl
Throughput 5530.2 lps (30.0 s, 2
samples)
File Copy 1024 bufsize 2000
maxblocks 825518.5 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500
maxblocks 252674.0 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000
maxblocks 2108433.3 KBps (30.0 s, 2 samples)
Pipe
Throughput 1897508.1 lps (10.0 s, 7
samples)
Pipe-based Context
Switching 191802.0 lps (10.0 s, 7
samples)
Process
Creation 15784.5 lps (30.0 s, 2
samples)
Shell Scripts (1
concurrent) 8369.1 lpm (60.0 s, 2
samples)
Shell Scripts (8
concurrent)