整理了一些我VPS測評時用到(常用的)腳本
VPS回程路由一鍵測試腳本
wget -qO- git.io/besttrace | bash
LemonBench 綜合性能測試工具腳本
快速測試
yum -y install wget
wget -O- https://ilemonra.in/LemonBenchIntl | bash -s fast
#或
apt-get install curl
curl -fsL https://ilemonra.in/LemonBenchIntl | bash -s fast
完整測試
yum -y install wget
wget -O- https://ilemonra.in/LemonBenchIntl | bash -s full
#或
apt-get install curl
curl -fsL https://ilemonra.in/LemonBenchIntl | bash -s full
SuperBench
wget -qO- git.io/superbench.sh | bash
使用參數的方法:
wget -qO- git.io/superbench.sh | bash -s info
wget -qO- git.io/superbench.sh | bash -s io
wget -qO- git.io/superbench.sh | bash -s speed
wget -qO- git.io/superbench.sh | bash -s fast
wget -qO- git.io/superbench.sh | bash -s share
VPS性能測試:CPU物理個數、內核、超線程、多核心 登錄VPS界面,執行:
cat /proc/cpuinfo
直接查看邏輯CPU的個數
cat /proc/cpuinfo |grep ‘physical id’ |sort |uniq
直接查看CPU的型號
cat /proc/cpuinfo |grep ‘model name’ |sort |uniq
單個CPU的內核數
cat /proc/cpuinfo |grep ‘cpu cores’ |sort |uniq
總的CPU線程數
cat /proc/cpuinfo |grep ‘processor’
查看購買的VPS主機的內存信息
cat /proc/meminfo
Linux真正占用的內存
free –m
測試VPS主機磁盤IO的性能可以執行以下兩個命令
dd if=/dev/zero of=test bs=64k count=4k oflag=dsyncdd if=/dev/zero of=test bs=8k count=256k conv=fdatasync
生成1TB的超大文件
dd if=/dev/zero of=1T.img bs=1G seek=1024 count=0
bs=1G表示每一次讀寫1G數據,count=0表示讀寫0次,seek=1024表示略過1024個Block不寫,前面block size是1G,所以共略過1T! 這是創建大型sparse文件最簡單的方法。 SSD硬盤速度測試
yum install hdparm -yfdisk -lhdparm -t /dev/hda
UnixBench跑分工具
wget https://teddysun.com/wp-content/uploads/unixbench.shchmod +x unixbench.sh./unixbench.sh
? 版權聲明
THE END














暫無評論內容