将下面这段保存为 test.sh , 并输入 ./test.sh 即可自动下载安装 UnixBench 进行性能测试.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
mkdir -p ~/unixbench; cd ~/unixbench; yum -y install perl-Time-HiRes wget make gcc gcc-c gcc-c++ autoconf time; wget http://byte-unixbench.googlecode.com/files/unixbench-5.1.2.tar.gz; tar zxvf unixbench-5.1.2.tar.gz; cd unixbench-5.1.2; sed -i "s/GRAPHIC_TESTS = defined/#GRAPHIC_TESTS = defined/g" ./Makefile make; ./Run; echo ''; echo ''; echo ''; echo "======= Copy and paste your results to the VPSMARK ======= "; echo ''; echo 'http://blog.itnmg.net/'; echo ''; echo ''; |