测测你的vps的性能

测测你的vps的性能

Unix Bench可以对你的vps进行性能测试。具体步骤如下:

 

1,下载Unix Bench5.1.3安装包

    wget http://byte-unixbench.googlecode.com/files/UnixBench5.1.3.tgz

 

2,解压缩

   tar zxvf UnixBench5.1.3.tgz

 

3. 安装必要环境

   sudo yum install gcc make

   sudo yum -y install perl perl-devel  perl-CPAN perl-Time-HiRes

 

如果出现下面的错误一般是你没有安装perl-Time-HiRes导致的:

Can't locate Time/HiRes.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at ./Run line 6.

 

4. 编译

   cd UnixBench5.1.3

   make

 

5. 运行

    ./Run

 

界面如下:

需要跑十多分钟到一个小时,根据你机器的配置不同而不同,跑完后产生下面的结果:

Dhrystone 2 using register variables       28751754.1 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     3118.1 MWIPS (10.0 s, 7 samples)
Execl Throughput                               4629.2 lps   (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks       1018624.9 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks          280966.1 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks       1927091.2 KBps  (30.0 s, 2 samples)
Pipe Throughput                             2036376.7 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 339287.3 lps   (10.0 s, 7 samples)
Process Creation                              13303.0 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   5184.1 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    689.4 lpm   (60.0 s, 2 samples)
System Call Overhead                        3911308.3 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   28751754.1   2463.7
Double-Precision Whetstone                       55.0       3118.1    566.9
Execl Throughput                                 43.0       4629.2   1076.6
File Copy 1024 bufsize 2000 maxblocks          3960.0    1018624.9   2572.3
File Copy 256 bufsize 500 maxblocks            1655.0     280966.1   1697.7
File Copy 4096 bufsize 8000 maxblocks          5800.0    1927091.2   3322.6
Pipe Throughput                               12440.0    2036376.7   1637.0
Pipe-based Context Switching                   4000.0     339287.3    848.2
Process Creation                                126.0      13303.0   1055.8
Shell Scripts (1 concurrent)                     42.4       5184.1   1222.7
Shell Scripts (8 concurrent)                      6.0        689.4   1149.1
System Call Overhead                          15000.0    3911308.3   2607.5
                                                                   ========
System Benchmarks Index Score                                        1487.3

 

会有一个总得分,我让上面跑的结果就是 1487

 

版权所有,禁止转载. 如需转载,请先征得博主的同意,并且表明文章出处,否则按侵权处理.

    分享到:

Leave a Reply

Your email address will not be published. Required fields are marked *