UnixBench是一款不错的Linux下的VPS性能测试软件,现在说一下具体用法。
UnixBench 4.10 下载地址:http://soft.vpser.net/test/unixbench/unixbench-4.1.0-wht.tar.gz
[root@noc ~]# wget http://soft.vpser.net/test/unixbench/unixbench-4.1.0-wht.tar.gz
[root@noc ~]# tar xzf unixbench-4.1.0-wht.tar.gz
[root@noc ~]# ls
unixbench-4.1.0-wht-2 unixbench-4.1.0-wht.tar.gz
[root@noc ~]# cd unixbench-4.1.0-wht-2/
[root@noc unixbench-4.1.0-wht-2]# make
[root@noc unixbench-4.1.0-wht-2]# ./Run
一下是运行后显示的内容:
==============================================================
BYTE UNIX Benchmarks (Version 4.1-wht.2)
System -- Linux noc.lnmp.org 2.6.18-92.1.13.el5.028stab059.6 #1 SMP Fri Nov 14 16:01:01 MSK 2008 i686 i686 i386 GNU/Linux
simfs 5120000 1581972 3538028 31% /
Start Benchmark Run: Wed Feb 4 05:11:25 PST 2009
05:11:25 up 20 days, 21:26, 1 user, load average: 0.00, 0.00, 0.00
End Benchmark Run: Wed Feb 4 05:21:40 PST 2009
05:21:40 up 20 days, 21:37, 1 user, load average: 15.46, 6.32, 2.72
INDEX VALUES
TEST BASELINE RESULT INDEX
Dhrystone 2 using register variables 376783.7 23797779.3 631.6
Double-Precision Whetstone 83.1 1407.7 169.4
Execl Throughput 188.3 10095.2 536.1
File Copy 1024 bufsize 2000 maxblocks 2672.0 204163.0 764.1
File Copy 256 bufsize 500 maxblocks 1077.0 74664.0 693.3
File Read 4096 bufsize 8000 maxblocks 15382.0 1629641.0 1059.4
Pipe Throughput 111814.6 3058960.1 273.6
Pipe-based Context Switching 15448.6 887966.3 574.8
Process Creation 569.3 26803.0 470.8
Shell Scripts (8 concurrent) 44.8 2503.6 558.8
System Call Overhead 114433.5 2409758.4 210.6
=========
FINAL SCORE 475.4
[root@noc unixbench-4.1.0-wht-2]#
我的VPS是www.thenynoc.com的,内存是256MB,分数是475.4,自己感觉这个分数还不错。快去测试一下你的VPS吧。
我测试的是以下的数值:
Dhrystone 2 using register variables 1 2
Double-Precision Whetstone 1 2
Execl Throughput 1 2
File Copy 1024 bufsize 2000 maxblocks 1 2
File Copy 256 bufsize 500 maxblocks 1 2
File Read 4096 bufsize 8000 maxblocks 1 2
Pipe Throughput 1 2
Pipe-based Context Switching 1 2
Process Creation 1 2
Shell Scripts (8 concurrent) 1 2
System Call Overhead 1 2
我们的vps也是有此程序测试性能
INDEX VALUES
TEST BASELINE RESULT INDEX
Dhrystone 2 using register variables 376783.7 5174784.1 137.3
Double-Precision Whetstone 83.1 988.8 119.0
Execl Throughput 188.3 250.3 13.3
File Copy 1024 bufsize 2000 maxblocks 2672.0 39986.0 149.6
File Copy 256 bufsize 500 maxblocks 1077.0 10266.0 95.3
File Read 4096 bufsize 8000 maxblocks 15382.0 232911.0 151.4
Pipe-based Context Switching 15448.6 6157.8 4.0
Pipe Throughput 111814.6 227243.6 20.3
Process Creation 569.3 610.8 10.7
Shell Scripts (8 concurrent) 44.8 51.6 11.5
System Call Overhead 114433.5 185846.5 16.2
=========
FINAL SCORE 34.3
不会吧才 34.3
INDEX VALUES
TEST BASELINE RESULT INDEX
Dhrystone 2 using register variables 376783.7 1237112.5 32.8
Double-Precision Whetstone 83.1 333.7 40.2
Execl Throughput 188.3 111.9 5.9
File Copy 1024 bufsize 2000 maxblocks 2672.0 25168.0 94.2
File Copy 256 bufsize 500 maxblocks 1077.0 7853.0 72.9
File Read 4096 bufsize 8000 maxblocks 15382.0 125728.0 81.7
Pipe-based Context Switching 15448.6 6595.1 4.3
Pipe Throughput 111814.6 188836.3 16.9
Process Creation 569.3 300.4 5.3
Shell Scripts (8 concurrent) 44.8 23.5 5.2
System Call Overhead 114433.5 199015.9 17.4
=========
FINAL SCORE 19.5
我的更可怜,才19.5分
看看我的一个vps,380M内存,0 swap:
top - 22:14:47 up 13:39, 2 users, load average: 5.04, 4.12, 2.25
Tasks: 26 total, 2 running, 24 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 393216k total, 177580k used, 215636k free, 0k buffers
Swap: 0k total, 0k used, 0k free, 0k cached
BYTE UNIX Benchmarks (Version 4.1-wht.2)
System -- Linux host30.10168.com 2.6.18-128.1.1.el5.028stab062.3 #1 SMP Sun May 10 18:54:51 MSD 2009 i686 i686 i386 GNU/Linux
/dev/simfs 41943040 1015476 40927564 3% /
Start Benchmark Run: Mon Aug 24 22:00:56 CST 2009
22:00:56 up 13:26, 2 users, load average: 0.26, 0.09, 0.02
End Benchmark Run: Mon Aug 24 22:14:09 CST 2009
22:14:09 up 13:39, 2 users, load average: 9.82, 4.71, 2.35
INDEX VALUES
TEST BASELINE RESULT INDEX
Dhrystone 2 using register variables 376783.7 6659070.7 176.7
Double-Precision Whetstone 83.1 1491.5 179.5
Execl Throughput 188.3 4374.8 232.3
File Copy 1024 bufsize 2000 maxblocks 2672.0 118181.0 442.3
File Copy 256 bufsize 500 maxblocks 1077.0 35331.0 328.1
File Read 4096 bufsize 8000 maxblocks 15382.0 649639.0 422.3
Pipe-based Context Switching 15448.6 250723.5 162.3
Pipe Throughput 111814.6 818551.4 73.2
Process Creation 569.3 11718.7 205.8
Shell Scripts (8 concurrent) 44.8 565.7 126.3
System Call Overhead 114433.5 601474.9 52.6
=========
FINAL SCORE 182.2
我的测试数字。w4networks.com的512M的内存。如下:
Double-Precision Whetstone 83.1 1249.4 150.3
Execl Throughput 188.3 4966.6 263.8
File Copy 1024 bufsize 2000 maxblocks 2672.0 76662.0 286.9
File Copy 256 bufsize 500 maxblocks 1077.0 23471.0 217.9
File Read 4096 bufsize 8000 maxblocks 15382.0 731706.0 475.7
Pipe-based Context Switching 15448.6 250267.1 162.0
Pipe Throughput 111814.6 745924.1 66.7
Process Creation 569.3 11832.5 207.8
Shell Scripts (8 concurrent) 44.8 465.8 104.0
System Call Overhead 114433.5 1152610.7 100.7
=========
FINAL SCORE 182.9
Start Benchmark Run: Thu Oct 8 20:12:57 MSD 2009
20:12:57 up 7 days, 22:02, 1 user, load average: 0.09, 0.05, 0.00
End Benchmark Run: Thu Oct 8 20:26:55 MSD 2009
20:26:55 up 7 days, 22:16, 1 user, load average: 13.22, 5.57, 2.63
INDEX VALUES
TEST BASELINE RESULT INDEX
Dhrystone 2 using register variables 376783.7 20696122.4 549.3
Double-Precision Whetstone 83.1 1684.9 202.8
Execl Throughput 188.3 11978.2 636.1
File Copy 1024 bufsize 2000 maxblocks 2672.0 425312.0 1591.7
File Copy 256 bufsize 500 maxblocks 1077.0 111148.0 1032.0
File Read 4096 bufsize 8000 maxblocks 15382.0 2601596.0 1691.3
Pipe Throughput 111814.6 3523273.4 315.1
Pipe-based Context Switching 15448.6 717258.2 464.3
Process Creation 569.3 34200.0 600.7
Shell Scripts (8 concurrent) 44.8 4244.0 947.3
System Call Overhead 114433.5 3357173.1 293.4
=========
FINAL SCORE 615.6
Pingback: unixBench测试vps性能 – ayanmw 的博客
我的vps是512的。跑到了978分,从vpsio.com买的