有一个脚本不错,可以用来测试带宽,磁盘I/O,硬件信息,大致可以得到类似如下的效果:

CPU model :  Intel(R) Xeon(R) CPU E3-1240 v3 @ 3.40GHz  
Number of cores : 4  
CPU frequency :  800.000 MHz  
Total amount of ram : 2048 MB  
Total amount of swap : 0 MB  
System uptime :   1:08, 
Download speed from CacheFly: 104MB/s   
Download speed from Coloat, Atlanta GA: 15.0MB/s   
Download speed from Softlayer, Dallas, TX: 71.0MB/s   
Download speed from Linode, Tokyo, JP: 9.49MB/s   
Download speed from i3d.net, Rotterdam, NL: 10.4MB/s  
Download speed from Leaseweb, Haarlem, NL: 64.0MB/s   
Download speed from Softlayer, Singapore: 8.98MB/s   
Download speed from Softlayer, Seattle, WA: 40.0MB/s   
Download speed from Softlayer, San Jose, CA: 38.5MB/s   
Download speed from Softlayer, Washington, DC: 64.9MB/s   
I/O speed :  482 MB/s

 

 

脚本执行方法:

wget http://107.161.16.99/bench.sh -O – -o /dev/null|bash