Linux VPS性能测试:UnixBench(VPS测试工具)
UnixBench是一款不错的Linux下的VPS性能测试工具,现在说一下具体用法。
ssh登录您的linux vps控制台,运行下面的1行命令即可:
wget http://www.CTOHome.com/linux-vps-pack/unixbench.sh;sh ./unixbench.sh;
此脚本会自动下载unixbench测试工具,并自动运行它。 根据您的机器性能,测试执行完大约需要5-10分钟
我的vps测试如下,配置:512MB内存,20G硬盘,1个Xeon(TM) CPU 3.06GHz
1 CPU in system; running 1 parallel copy of tests
Dhrystone 2 using register variables 4746943.4 lps (10.0 s, 7 samples)
Double-Precision Whetstone 1177.4 MWIPS (10.5 s, 7 samples)
Execl Throughput 1489.6 lps (29.9 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks 179386.1 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 53237.1 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 451691.6 KBps (30.0 s, 2 samples)
Pipe Throughput 358547.6 lps (10.0 s, 7 samples)
Pipe-based Context Switching 86837.7 lps (10.0 s, 7 samples)
Process Creation 4989.5 lps (30.0 s, 2 samples)
Shell Scripts (1 concurrent) 1759.7 lpm (60.0 s, 2 samples)
Shell Scripts (8 concurrent) 238.2 lpm (60.1 s, 2 samples)
System Call Overhead 396963.7 lps (10.0 s, 7 samples)
System Benchmarks Index Values BASELINE RESULT INDEX
Dhrystone 2 using register variables 116700.0 4746943.4 406.8
Double-Precision Whetstone 55.0 1177.4 214.1
Execl Throughput 43.0 1489.6 346.4
File Copy 1024 bufsize 2000 maxblocks 3960.0 179386.1 453.0
File Copy 256 bufsize 500 maxblocks 1655.0 53237.1 321.7
File Copy 4096 bufsize 8000 maxblocks 5800.0 451691.6 778.8
Pipe Throughput 12440.0 358547.6 288.2
Pipe-based Context Switching 4000.0 86837.7 217.1
Process Creation 126.0 4989.5 396.0
Shell Scripts (1 concurrent) 42.4 1759.7 415.0
Shell Scripts (8 concurrent) 6.0 238.2 397.0
System Call Overhead 15000.0 396963.7 264.6
========
System Benchmarks Index Score 352.6