Linux VPS性能测试:UnixBench(VPS测试工具)
  • UnixBench是一款不错的Linux下的VPS性能测试工具,现在说一下具体用法。

    ssh登录您的linux vps控制台,运行下面的1行命令即可:

    wget http://www.654z.com/linux-vps-pack/unixbench.sh;sh ./unixbench.sh;

    此脚本会自动下载unixbench测试工具,并自动运行它。 根据您的机器性能,测试执行完大约需要5-10分钟,

    Linux VPS性能测试的结果类似如下:

    BYTE UNIX Benchmarks (Version 4.1-wht.2)
    System -- Linux vps59.654z.com 2.6.18-164.2.1.el5.028stab066.10 #1 SMP Sat Dec 12 18:52:53 MSK 2009 i686 i686 i386 GNU/Linux
    /dev/simfs           157286400   1112188 156174212   1% /

    Start Benchmark Run: Tue Dec 22 00:46:05 MSK 2009
     00:46:05 up  5:51,  1 user,  load average: 0.07, 0.03, 0.01

    End Benchmark Run: Tue Dec 22 00:58:44 MSK 2009
     00:58:44 up  6:04,  2 users,  load average: 14.37, 6.12, 2.80


                         INDEX VALUES           
    TEST                                        BASELINE     RESULT      INDEX

    Dhrystone 2 using register variables        376783.7 16303866.8      432.7
    Double-Precision Whetstone                      83.1     1299.8      156.4
    Execl Throughput                               188.3     7725.8      410.3
    File Copy 1024 bufsize 2000 maxblocks         2672.0   165150.0      618.1
    File Copy 256 bufsize 500 maxblocks           1077.0    55402.0      514.4
    File Read 4096 bufsize 8000 maxblocks        15382.0  1577261.0     1025.4
    Pipe-based Context Switching                 15448.6   600615.4      388.8
    Pipe Throughput                             111814.6  2184246.1      195.3
    Process Creation                               569.3    22116.2      388.5
    Shell Scripts (8 concurrent)                    44.8     1213.8      270.9
    System Call Overhead                        114433.5  1758851.2      153.7
                                                                     =========
         FINAL SCORE                                                     354.5

    这就是我的VPS的总分数,2.5G内存,Q6600,跑了KLOXO面板,硬盘有raid

     

    一般来说,对于VPS,测试分数在100分以上就算OK了,有一些低配置的P4独立服务器才30-80分。

    VPS都是多个共用一个服务器资源,所以,不要盲目的追求高分,测试结果并不代表您可以使用到这么多资源。

    提供一些测试结果以供参考对比:

    TekTonic VPS, 1178 MB SLM Ram

    BYTE UNIX Benchmarks (Version 4.1-wht.1)
    System -- Linux www1 2.6.18-028stab053.17 #1 SMP Mon Jun 9 20:42: 43 MSD 2008 x86_64 x86_64 x86_64 GNU/Linux
    /dev/vzfs 54525952 1002732 53523220 2% /

    Start Benchmark Run: Sun Jul 20 07:22:37 EDT 2008
    07:22:37 up 10 days, 15:20, 1 user, load average: 0.10, 0.03, 0.01

    End Benchmark Run: Sun Jul 20 07:32:51 EDT 2008
    07:32:51 up 10 days, 15:30, 1 user, load average: 12.54, 5.50, 2.42


    INDEX VALUES
    TEST BASELINE RESULT INDEX

    Dhrystone 2 using register variables 376783.7 39636370.0 1052.0
    Double-Precision Whetstone 83.1 2777.2 334.2
    Execl Throughput 188.3 1.0 0.1
    File Copy 1024 bufsize 2000 maxblocks 2672.0 168410.0 630.3
    File Copy 256 bufsize 500 maxblocks 1077.0 55239.0 512.9
    File Read 4096 bufsize 8000 maxblocks 15382.0 1213185.0 788.7
    Pipe-based Context Switching 15448.6 778065.9 503.6
    Pipe Throughput 111814.6 2639096.8 236.0
    Process Creation 569.3 15147.9 266.1
    Shell Scripts (8 concurrent) 44.8 934.8 208.7
    System Call Overhead 114433.5 2216242.0 193.7
    =========
    FINAL SCORE 179.1


     

    Intel(R) Xeon(R) CPU X3220 @ 2.40GHz

    BYTE UNIX Benchmarks (Version 4.1-wht.1)
    System -- Linux xxx.x*********** 2.6.18-92.1.6.el5 #1 SMP Fri Jun 20 02:36:06 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
    /dev/sda5 15235040 842868 13605792 6% /

    Start Benchmark Run: Sun Jul 20 14:29:30 CEST 2008
    14:29:30 up 2 days, 14:21, 2 users, load average: 0.08, 0.02, 0.00

    End Benchmark Run: Sun Jul 20 14:39:09 CEST 2008
    14:39:09 up 2 days, 14:31, 2 users, load average: 17.45, 7.24, 3.03


    INDEX VALUES
    TEST BASELINE RESULT INDEX

    Dhrystone 2 using register variables 376783.7 52964762.4 1405.7
    Double-Precision Whetstone 83.1 2646.5 318.5
    Execl Throughput 188.3 1.0 0.1
    File Copy 1024 bufsize 2000 maxblocks 2672.0 177760.0 665.3
    File Copy 256 bufsize 500 maxblocks 1077.0 60598.0 562.7
    File Read 4096 bufsize 8000 maxblocks 15382.0 1349778.0 877.5
    Pipe-based Context Switching 15448.6 1082390.9 700.6
    Pipe Throughput 111814.6 3437748.3 307.5
    Process Creation 569.3 38647.5 678.9
    Shell Scripts (8 concurrent) 44.8 2730.5 609.5
    System Call Overhead 114433.5 2765994.1 241.7
    =========
    FINAL SCORE 242.2

     

    Core Intel Core2Quad Q9300
    RAM 8gb DDR2
    Hard Drive 750gb SATA
    Operating System CentOS 5.1 - 64 bit

    ==============================================================
    BYTE UNIX Benchmarks (Version 4.1-wht.1)
    System -- Linux hxxxxx.xxxxxxx.xxxx 2.6.25.11 #1 SMP Fri Jul 18 05:54:37 CDT 2008 x86_64 x86_64 x86_64 GNU/Linux
    707556656 58223196 612811888 9% /

    Start Benchmark Run: Sun Jul 27 09:44:54 GMT+7 2008
    09:44:54 up 7 days, 3:07, 1 user, load average: 0.15, 0.19, 0.18

    End Benchmark Run: Sun Jul 27 09:54:51 GMT+7 2008
    09:54:51 up 7 days, 3:17, 1 user, load average: 14.32, 6.43, 2.95


    INDEX VALUES
    TEST BASELINE RESULT INDEX

    Dhrystone 2 using register variables 376783.7 53071766.3 1408.5
    Double-Precision Whetstone 83.1 2861.6 344.4
    Execl Throughput 188.3 1.0 0.1
    File Copy 1024 bufsize 2000 maxblocks 2672.0 244096.0 913.5
    File Copy 256 bufsize 500 maxblocks 1077.0 76926.0 714.3
    File Read 4096 bufsize 8000 maxblocks 15382.0 1637081.0 1064.3
    Pipe-based Context Switching 15448.6 1098145.9 710.8
    Pipe Throughput 111814.6 3682570.6 329.3
    Process Creation 569.3 37471.9 658.2
    Shell Scripts (8 concurrent) 44.8 2216.0 494.6
    System Call Overhead 114433.5 3057039.6 267.1
    =========
    FINAL SCORE 259.8
     

    Intel(R) Xeon(R) CPU           X3230  @ 2.66GHz

    BYTE UNIX Benchmarks (Version 4.1-wht.2)System -- Linux ccitest 2.6.18-164.6.1.el5xen #1 SMP Tue Nov 3 16:48:13 EST 2009 x86_64 x86_64 x86_64 GNU/Linux/dev/xvda2           101471352   1570008  94663756   2% /Start Benchmark Run: Sun Dec  6 14:23:18 CST 2009 14:23:18 up 4 min,  1 user,  load average: 0.81, 0.41, 0.17End Benchmark Run: Sun Dec  6 14:34:46 CST 2009 14:34:46 up 15 min,  1 user,  load average: 15.65, 6.77, 3.15                     INDEX VALUES            TEST                                        BASELINE     RESULT      INDEXDhrystone 2 using register variables        376783.7  5882030.5      156.1Double-Precision Whetstone                      83.1     1817.5      218.7Execl Throughput                               188.3     1857.2       98.6File Copy 1024 bufsize 2000 maxblocks         2672.0    65269.0      244.3File Copy 256 bufsize 500 maxblocks           1077.0    18173.0      168.7File Read 4096 bufsize 8000 maxblocks        15382.0   486529.0      316.3Pipe-based Context Switching                 15448.6   109886.6       71.1Pipe Throughput                             111814.6   381731.2       34.1Process Creation                               569.3     3960.7       69.6Shell Scripts (8 concurrent)                    44.8      465.8      104.0System Call Overhead                        114433.5   280372.8       24.5                                                                 =========     FINAL SCORE                                                     106.0

    i5 750 @ 2.67GHz / 8GB RAM / 2x1TB SATA software RAID-1

    Start Benchmark Run: Mon Dec  7 17:06:20 EST 2009
     17:06:20 up 5 days, 12:02,  1 user,  load average: 0.00, 0.72, 1.22

    End Benchmark Run: Mon Dec  7 17:16:55 EST 2009
     17:16:55 up 5 days, 12:13,  1 user,  load average: 25.08, 9.95, 4.80


                         INDEX VALUES
    TEST                                        BASELINE     RESULT      INDEX

    Dhrystone 2 using register variables        376783.7 22952878.3      609.2
    Double-Precision Whetstone                      83.1     1704.0      205.1
    Execl Throughput                               188.3    21480.3     1140.7
    File Copy 1024 bufsize 2000 maxblocks         2672.0   571200.0     2137.7
    File Copy 256 bufsize 500 maxblocks           1077.0   162227.0     1506.3
    File Read 4096 bufsize 8000 maxblocks        15382.0  3540312.0     2301.6
    Pipe-based Context Switching                 15448.6  1536398.3      994.5
    Pipe Throughput                             111814.6  5856215.7      523.7
    Process Creation                               569.3    69004.5     1212.1
    Shell Scripts (8 concurrent)                    44.8     4626.7     1032.7
    System Call Overhead                        114433.5  7226715.6      631.5
                                                                     =========
         FINAL SCORE                                                     927.1 (i系列的cpu就是性能不错,这个也是硬盘做了raid)

    VPS - Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz

    Dhrystone 2 using register variables        376783.7 19026940.3      505.0Double-Precision Whetstone                      83.1     1354.1      162.9Execl Throughput                               188.3    15340.8      814.7File Copy 1024 bufsize 2000 maxblocks         2672.0   398171.0     1490.2File Copy 256 bufsize 500 maxblocks           1077.0   118935.0     1104.3File Read 4096 bufsize 8000 maxblocks        15382.0  2625333.0     1706.8Pipe-based Context Switching                 15448.6   330750.1      214.1Pipe Throughput                             111814.6  3511603.3      314.1Process Creation                               569.3    41223.9      724.1Shell Scripts (8 concurrent)                    44.8     4683.0     1045.3System Call Overhead                        114433.5  3465020.7      302.8                                                                 =========     FINAL SCORE                                                     587.9

    dedicated - Intel(R) Xeon(R) CPU X3230 @ 2.66GHz

    Dhrystone 2 using register variables        376783.7 23765477.8      630.7Double-Precision Whetstone                      83.1     1824.7      219.6Execl Throughput                               188.3    13823.9      734.1File Copy 1024 bufsize 2000 maxblocks         2672.0   182964.0      684.7File Copy 256 bufsize 500 maxblocks           1077.0    60123.0      558.2File Read 4096 bufsize 8000 maxblocks        15382.0  1454686.0      945.7Pipe-based Context Switching                 15448.6  1118260.2      723.9Pipe Throughput                             111814.6  3788722.7      338.8Process Creation                               569.3    40686.2      714.7Shell Scripts (8 concurrent)                    44.8     2989.5      667.3System Call Overhead                        114433.5  3079164.4      269.1                                                                 =========     FINAL SCORE                                                     540.8
  •  

  • 点这里复制本页地址发送给您QQ/MSN上的好友
  • 300*300广告