# 压测工具
Unixbench
下载:http://175.6.32.4:88/soft/test/unixbench/unixbench-5.1.2.tar.gz
没有gcc环境更新安装源
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
sed -i 's/$releasever/7/g' /etc/yum.repos.d/CentOS-Base.repo
yum repolist
安装依赖包
yum -y groupinstall "Development tools"
编译
make
FAQ:
X11/Xlib.h: No such file or directory
解决
注释 GRAPHIC_TESTS = defined
CentOS 编译一些开源项目提示:X11/Xlib.h: No such file or directory。
运行命令:yum install libX11-devel就可以了。
参考:https://blog.csdn.net/gatieme/article/details/50912910
出现错误 ./src/ubgears.c:51:19: fatal error: GL/gl.h: No such file or directory
解决
yum install -y SDL-devel mesa-libGL-devel
yum install -y perl-Time-HiRes
参考:http://t.zoukankan.com/BuildingHome-p-4540497.html
ubantu安装
wget http://175.6.32.4:88/soft/test/unixbench/unixbench-5.1.2.tar.gz
tar -zxvf unixbench-5.1.2.tar.gz
cd unixbench-5.1.2
vim Makefile
注释 GRAPHIC_TESTS = defined
make
使用 ./Run
跑的时间会略长 最后跑完将会有一个分数在底部出现。通常情况下1000分以上的VPS是性能较好的
网友评论