Netufa
Apprentice 1.0

Langkah Pertama 1
Buat File head-to-head.sh
[root@kwo ~]# vim head-to-head.sh
Atau Pakek Nano
Langkah Kedua 2
Isi head-to-head.sh Dengan Script di dalam Spoiler
#/bin/bash
ntpdate ca.pool.ntp.org > /dev/null 2>&1
wget ftp://ftp.muug.mb.ca/mirror/fedora/linux/development/rawhide/i386/os/Packages/p/phoronix-test-suite-5.4.1-1.fc22.noarch.rpm
yum install php-cli php php-fpdf php-gd php-process php-xml -y > /dev/null 2>&1
rpm -ivh --nodeps phoronix-test-suite-5.4.1-1.fc22.noarch.rpm > /dev/null 2>&1
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm > /dev/null 2>&1
rpm -ivh epel-release-6-8.noarch.rpm > /dev/null 2>&1
yum install sysbench -y > /dev/null 2>&1
yum install ioping -y > /dev/null 2>&1
yum install mysql-server -y > /dev/null 2>&1
yum install hdparm -y > /dev/null 2>&1
service mysqld start > /dev/null 2>&1
/usr/bin/mysqladmin -u root password 'TempPass123' > /dev/null 2>&1
touch benchmark-results
sysbench --test=oltp --db-driver=mysql --oltp-table-size=1000000 --mysql-db=test --mysql-user=root --mysql-password=TempPass123 prepare > /dev/null 2>&1
sysbench --test=oltp --db-driver=mysql --oltp-table-size=1000000 --mysql-db=test --mysql-user=root --mysql-password=TempPass123 --max-time=60 --oltp-read-only=on --max-requests=0 --num-threads=8 run | grep transactions: | sed -e 's/^[ \t]*//' > benchmark-results
yes | phoronix-test-suite install pts/apache > /dev/null 2>&1
yes | phoronix-test-suite run pts/apache | grep Average: | sed 's/Average:/Pages\/Sec:/' | sed -e 's/^[ \t]*//' >> benchmark-results
cat /proc/cpuinfo | grep -m 1 "model name" | sed 's/model name//' | sed -e 's/^[ \t]*//' | sed 's/:/Processor:/' >> benchmark-results
echo >> benchmark-results
echo "Disk Write Performance" >> benchmark-results
dd if=/dev/zero of=test bs=1048576 count=2048 > /dev/null 2>&1
dd if=/dev/zero of=test bs=1048576 count=2048 >> benchmark-results
echo >> benchmark-results
echo "Disk Read Performance" >> benchmark-results
hdparm -tT /dev/sda >> benchmark-results
echo >> benchmark-results
echo "Disk Direct I/O Seek Rate (IOPs are what matters" >> benchmark-results
ioping -RD /dev/sda >> benchmark-results
echo >> benchmark-results
echo "Disk Latency (Avg matters)" >> benchmark-results
ioping -c 20 /dev/sda | grep min/avg/max/mdev >> benchmark-results
echo >> benchmark-results
echo "GZIP Test" >> benchmark-results
yes | phoronix-test-suite install pts/compress-gzip > /dev/null 2>&1
yes | phoronix-test-suite run pts/compress-gzip | grep Average: | sed 's/Average:/Time\/to\/compress\/2GB\/file:/' >> benchmark-results
echo >> benchmark-results
echo "Unpacking the Linux Kernel" >> benchmark-results
yes | phoronix-test-suite install pts/unpack-linux > /dev/null 2>&1
yes | phoronix-test-suite run pts/unpack-linux | grep Average: | sed 's/Average:/Time\/to\/unpack\/Linux\/kernel:/' >> benchmark-results
echo >> benchmark-results
echo "Compiling the Linux Kernel" >> benchmark-results
yes | phoronix-test-suite install pts/build-linux-kernel > /dev/null 2>&1
yes | phoronix-test-suite run pts/build-linux-kernel | grep Average: | sed 's/Average:/Time\/to\/compile\/Linux\/kernel:/' >> benchmark-results
Langkah Ketiga 3
chmod +x head-to-head.sh
Langkah Ke Empat
Jalankan Script.
./head-to-head.sh
Jika mau melihat Hasil nya , Tinggal Masukin Perintah
cat benchmark-results
Maaf jika Thread nya jelek

Thank you