使用UnixBench测试你的VPS

UnixBench是一款不错的Linux下的VPS性能测试软件,很多网站上对VPS都评测都采用这款软件,几乎是最基本的VPS测试。下面将说说如何使用UnixBench来测试你的VPS。

UnixBench 4.10 下载地址:http://soft.vpser.net/test/unixbench/unixbench-4.1.0-wht.tar.gz

下面是通过ssh安装和使用UnixBench来做测试。

[root@sayhosts ~]# wget http://soft.vpser.net/test/unixbench/unixbench-4.1.0-wht.tar.gz

[root@sayhosts ~]# tar xzf unixbench-4.1.0-wht.tar.gz

[root@sayhosts ~]# ls

unixbench-4.1.0-wht-2 unixbench-4.1.0-wht.tar.gz

[root@sayhosts ~]# cd unixbench-4.1.0-wht-2/

[root@sayhosts unixbench-4.1.0-wht-2]# make

如果出现下面错误
make: gcc: Command not found
make: *** [pgms/arithoh] Error 127

出现下面错误可能是由于没有安装gcc,所以运行下面命令安装下gcc就可以了。

[root@sayhosts unixbench-4.1.0-wht-2]# yum install make gcc

如果遇到 Error: Please install /usr/bin/time. 错误提示

centos/fedora 下运行

[root@sayhosts unixbench-4.1.0-wht-2]# yum install time

ubuntu/debian 下运行

[root@sayhosts unixbench-4.1.0-wht-2]# apt-get install time

最后运行

[root@sayhosts unixbench-4.1.0-wht-2]# ./Run

运行之后得到类似下面的结果就是你的VPS的分数:

INDEX VALUES
TEST BASELINE RESULT INDEX

Dhrystone 2 using register variables 376783.7 5063737.2 134.4
Double-Precision Whetstone 83.1 1045.1 125.8
Execl Throughput 188.3 3231.7 171.6
File Copy 1024 bufsize 2000 maxblocks 2672.0 75573.0 282.8
File Copy 256 bufsize 500 maxblocks 1077.0 23308.0 216.4
File Read 4096 bufsize 8000 maxblocks 15382.0 575528.0 374.2
Pipe-based Context Switching 15448.6 198749.2 128.7
Pipe Throughput 111814.6 623218.2 55.7
Process Creation 569.3 9493.6 166.8
Shell Scripts (8 concurrent) 44.8 468.7 104.6
System Call Overhead 114433.5 506205.8 44.2
=========
FINAL SCORE 138.8

Leave a Reply

Your email address will not be published.