Internet Offline: Mengukur kiwix dengan ab
Jump to navigation
Jump to search
Instalasi
apt update apt -y install apache2-utils
Mengukur
Secara umum:
ab -kc 20 -t 60 http://192.168.0.3:8080/wikipedia_id_all_novid_2018-07/
Script kiwix-ab.sh
ssh pi@192.168.0.1 /home/pi/kiwix-on.sh & sleep 5 rm -Rf hasil-kiwix-ab-192.168.0.1.txt touch hasil-kiwix-ab-192.168.0.1.txt echo 10 >> hasil-kiwix-ab-192.168.0.1.txt ab -kc 10 -t 60 http://192.168.0.1:8080/wikipedia_id_all_novid_2018-07/ >> hasil-kiwix-ab-192.168.0.1.txt echo 20 >> hasil-kiwix-ab-192.168.0.1.txt ab -kc 20 -t 60 http://192.168.0.1:8080/wikipedia_id_all_novid_2018-07/ >> hasil-kiwix-ab-192.168.0.1.txt echo 30 >> hasil-kiwix-ab-192.168.0.1.txt ab -kc 30 -t 60 http://192.168.0.1:8080/wikipedia_id_all_novid_2018-07/ >> hasil-kiwix-ab-192.168.0.1.txt echo 40 >> hasil-kiwix-ab-192.168.0.1.txt ab -kc 40 -t 60 http://192.168.0.1:8080/wikipedia_id_all_novid_2018-07/ >> hasil-kiwix-ab-192.168.0.1.txt echo 50 >> hasil-kiwix-ab-192.168.0.1.txt ab -kc 50 -t 60 http://192.168.0.1:8080/wikipedia_id_all_novid_2018-07/ >> hasil-kiwix-ab-192.168.0.1.txt ssh pi@192.168.0.1 /home/pi/kiwix-off.sh & ssh onno@192.168.0.2 /home/onno/kiwix-on.sh & sleep 5 rm -Rf hasil-kiwix-ab-192.168.0.2.txt touch hasil-kiwix-ab-192.168.0.2.txt echo 10 >> hasil-kiwix-ab-192.168.0.2.txt ab -kc 10 -t 60 http://192.168.0.2:8080/wikipedia_id_all_novid_2018-07/ >> hasil-kiwix-ab-192.168.0.2.txt echo 20 >> hasil-kiwix-ab-192.168.0.1.txt ab -kc 20 -t 60 http://192.168.0.2:8080/wikipedia_id_all_novid_2018-07/ >> hasil-kiwix-ab-192.168.0.2.txt echo 30 >> hasil-kiwix-ab-192.168.0.1.txt ab -kc 30 -t 60 http://192.168.0.2:8080/wikipedia_id_all_novid_2018-07/ >> hasil-kiwix-ab-192.168.0.2.txt echo 40 >> hasil-kiwix-ab-192.168.0.1.txt ab -kc 40 -t 60 http://192.168.0.2:8080/wikipedia_id_all_novid_2018-07/ >> hasil-kiwix-ab-192.168.0.2.txt echo 50 >> hasil-kiwix-ab-192.168.0.1.txt ab -kc 50 -t 60 http://192.168.0.2:8080/wikipedia_id_all_novid_2018-07/ >> hasil-kiwix-ab-192.168.0.2.txt ssh onno@192.168.0.2 /home/pi/kiwix-off.sh & ssh onno@192.168.0.3 /home/onno/kiwix-on.sh & sleep 5 VBoxManage controlvm "Offline" acpipowerbutton sleep 30 VBoxManage modifyvm "Offline" --memory 1024 VBoxManage modifyvm "Offline" --unplugcpu 3 VBoxManage modifyvm "Offline" --unplugcpu 2 VBoxManage modifyvm "Offline" --unplugcpu 1 VBoxManage startvm "Offline" sleep 110 rm -Rf hasil-kiwix-ab-192.168.0.3.txt touch hasil-kiwix-ab-192.168.0.3.txt echo 10 >> hasil-kiwix-ab-192.168.0.3.txt ab -kc 10 -t 60 http://192.168.0.3:8080/wikipedia_id_all_novid_2018-07/ >> hasil-kiwix-ab-192.168.0.3.txt echo 20 >> hasil-kiwix-ab-192.168.0.1.txt ab -kc 20 -t 60 http://192.168.0.2:8080/wikipedia_id_all_novid_2018-07/ >> hasil-kiwix-ab-192.168.0.3.txt echo 30 >> hasil-kiwix-ab-192.168.0.1.txt ab -kc 30 -t 60 http://192.168.0.2:8080/wikipedia_id_all_novid_2018-07/ >> hasil-kiwix-ab-192.168.0.3.txt echo 40 >> hasil-kiwix-ab-192.168.0.1.txt ab -kc 40 -t 60 http://192.168.0.2:8080/wikipedia_id_all_novid_2018-07/ >> hasil-kiwix-ab-192.168.0.3.txt echo 50 >> hasil-kiwix-ab-192.168.0.1.txt ab -kc 50 -t 60 http://192.168.0.2:8080/wikipedia_id_all_novid_2018-07/ >> hasil-kiwix-ab-192.168.0.3.txt echo 100 >> hasil-kiwix-ab-192.168.0.1.txt ab -kc 100 -t 60 http://192.168.0.2:8080/wikipedia_id_all_novid_2018-07/ >> hasil-kiwix-ab-192.168.0.3.txt echo 150 >> hasil-kiwix-ab-192.168.0.1.txt ab -kc 150 -t 60 http://192.168.0.2:8080/wikipedia_id_all_novid_2018-07/ >> hasil-kiwix-ab-192.168.0.3.txt ssh onno@192.168.0.3 /home/pi/kiwix-off.sh &
Script kiwix-ab-vmall.sh
ssh onno@192.168.0.3 /home/onno/kiwix-on.sh & VBoxManage controlvm "Offline" acpipowerbutton sleep 30 VBoxManage modifyvm "Offline" --memory 512 VBoxManage modifyvm "Offline" --unplugcpu 3 VBoxManage modifyvm "Offline" --unplugcpu 2 VBoxManage modifyvm "Offline" --unplugcpu 1 VBoxManage startvm "Offline" sleep 110 touch hasil-kiwix-ab-192.168.0.3-1CORE-512M.txt ab -kc 150 -t 60 http://192.168.0.3:8080/wikipedia_id_all_novid_2018-07/ >> hasil-kiwix-ab-192.168.0.3-1CORE-512M.txt ssh onno@192.168.0.3 /home/pi/kiwix-off.sh & ssh onno@192.168.0.3 /home/onno/kiwix-on.sh & VBoxManage controlvm "Offline" acpipowerbutton sleep 30 VBoxManage modifyvm "Offline" --memory 1024 VBoxManage modifyvm "Offline" --unplugcpu 3 VBoxManage modifyvm "Offline" --unplugcpu 2 VBoxManage modifyvm "Offline" --unplugcpu 1 VBoxManage startvm "Offline" sleep 110 touch hasil-kiwix-ab-192.168.0.3-1CORE-1024M.txt ab -kc 150 -t 60 http://192.168.0.3:8080/wikipedia_id_all_novid_2018-07/ >> hasil-kiwix-ab-192.168.0.3-1CORE- 1024M.txt ssh onno@192.168.0.3 /home/pi/kiwix-off.sh & ssh onno@192.168.0.3 /home/onno/kiwix-on.sh & VBoxManage controlvm "Offline" acpipowerbutton sleep 30 VBoxManage modifyvm "Offline" --memory 2048 VBoxManage modifyvm "Offline" --unplugcpu 3 VBoxManage modifyvm "Offline" --unplugcpu 2 VBoxManage modifyvm "Offline" --unplugcpu 1 VBoxManage startvm "Offline" sleep 110 touch hasil-kiwix-ab-192.168.0.3-1CORE-2048M.txt ab -kc 150 -t 60 http://192.168.0.3:8080/wikipedia_id_all_novid_2018-07/ >> hasil-kiwix-ab-192.168.0.3-1CORE-2048M.txt ssh onno@192.168.0.3 /home/pi/kiwix-off.sh & ssh onno@192.168.0.3 /home/onno/kiwix-on.sh & VBoxManage controlvm "Offline" acpipowerbutton sleep 30 VBoxManage modifyvm "Offline" --memory 4096 VBoxManage modifyvm "Offline" --unplugcpu 3 VBoxManage modifyvm "Offline" --unplugcpu 2 VBoxManage modifyvm "Offline" --unplugcpu 1 VBoxManage startvm "Offline" sleep 110 touch hasil-kiwix-ab-192.168.0.3-1CORE-4096M.txt ab -kc 150 -t 60 http://192.168.0.3:8080/wikipedia_id_all_novid_2018-07/ >> hasil-kiwix-ab-192.168.0.3-1CORE-4096M.txt ssh onno@192.168.0.3 /home/pi/kiwix-off.sh &
ssh onno@192.168.0.3 /home/onno/kiwix-on.sh & VBoxManage controlvm "Offline" acpipowerbutton sleep 30 VBoxManage modifyvm "Offline" --memory 512 VBoxManage modifyvm "Offline" --unplugcpu 3 VBoxManage modifyvm "Offline" --unplugcpu 2 VBoxManage modifyvm "Offline" --plugcpu 1 VBoxManage startvm "Offline" sleep 110 touch hasil-kiwix-ab-192.168.0.3-2CORE-512M.txt ab -kc 150 -t 60 http://192.168.0.3:8080/wikipedia_id_all_novid_2018-07/ >> hasil-kiwix-ab-192.168.0.3-2CORE-512M.txt ssh onno@192.168.0.3 /home/pi/kiwix-off.sh &
ssh onno@192.168.0.3 /home/onno/kiwix-on.sh & VBoxManage controlvm "Offline" acpipowerbutton sleep 30 VBoxManage modifyvm "Offline" --memory 1024 VBoxManage modifyvm "Offline" --unplugcpu 3 VBoxManage modifyvm "Offline" --unplugcpu 2 VBoxManage modifyvm "Offline" --plugcpu 1 VBoxManage startvm "Offline" sleep 110 touch hasil-kiwix-ab-192.168.0.3-2CORE-1024M.txt ab -kc 150 -t 60 http://192.168.0.3:8080/wikipedia_id_all_novid_2018-07/ >> hasil-kiwix-ab-192.168.0.3-2CORE-1024M.txt ssh onno@192.168.0.3 /home/pi/kiwix-off.sh & ssh onno@192.168.0.3 /home/onno/kiwix-on.sh & VBoxManage controlvm "Offline" acpipowerbutton sleep 30 VBoxManage modifyvm "Offline" --memory 2048 VBoxManage modifyvm "Offline" --unplugcpu 3 VBoxManage modifyvm "Offline" --unplugcpu 2 VBoxManage modifyvm "Offline" --plugcpu 1 VBoxManage startvm "Offline" sleep 110 touch hasil-kiwix-ab-192.168.0.3-2CORE-2048M.txt ab -kc 150 -t 60 http://192.168.0.3:8080/wikipedia_id_all_novid_2018-07/ >> hasil-kiwix-ab-192.168.0.3-2CORE-2048M.txt ssh onno@192.168.0.3 /home/pi/kiwix-off.sh & ssh onno@192.168.0.3 /home/onno/kiwix-on.sh & VBoxManage controlvm "Offline" acpipowerbutton sleep 30 VBoxManage modifyvm "Offline" --memory 4096 VBoxManage modifyvm "Offline" --unplugcpu 3 VBoxManage modifyvm "Offline" --unplugcpu 2 VBoxManage modifyvm "Offline" --plugcpu 1 VBoxManage startvm "Offline" sleep 110 touch hasil-kiwix-ab-192.168.0.3-2CORE-4096M.txt ab -kc 150 -t 60 http://192.168.0.3:8080/wikipedia_id_all_novid_2018-07/ >> hasil-kiwix-ab-192.168.0.3-2CORE- 4096M.txt ssh onno@192.168.0.3 /home/pi/kiwix-off.sh & ssh onno@192.168.0.3 /home/onno/kiwix-on.sh & VBoxManage controlvm "Offline" acpipowerbutton sleep 30 VBoxManage modifyvm "Offline" --memory 512 VBoxManage modifyvm "Offline" --unplugcpu 3 VBoxManage modifyvm "Offline" --plugcpu 2 VBoxManage modifyvm "Offline" --plugcpu 1 VBoxManage startvm "Offline" sleep 110 touch hasil-kiwix-ab-192.168.0.3-3CORE-512M.txt ab -kc 150 -t 60 http://192.168.0.3:8080/wikipedia_id_all_novid_2018-07/ >> hasil-kiwix-ab-192.168.0.3-3CORE-512M.txt ssh onno@192.168.0.3 /home/pi/kiwix-off.sh & ssh onno@192.168.0.3 /home/onno/kiwix-on.sh & VBoxManage controlvm "Offline" acpipowerbutton sleep 30 VBoxManage modifyvm "Offline" --memory 1024 VBoxManage modifyvm "Offline" --unplugcpu 3 VBoxManage modifyvm "Offline" --plugcpu 2 VBoxManage modifyvm "Offline" --plugcpu 1 VBoxManage startvm "Offline" sleep 110 touch hasil-kiwix-ab-192.168.0.3-3CORE-1024M.txt ab -kc 150 -t 60 http://192.168.0.3:8080/wikipedia_id_all_novid_2018-07/ >> hasil-kiwix-ab-192.168.0.3-3CORE- 1024M.txt ssh onno@192.168.0.3 /home/pi/kiwix-off.sh & ssh onno@192.168.0.3 /home/onno/kiwix-on.sh & VBoxManage controlvm "Offline" acpipowerbutton sleep 30 VBoxManage modifyvm "Offline" --memory 2048 VBoxManage modifyvm "Offline" --unplugcpu 3 VBoxManage modifyvm "Offline" --plugcpu 2 VBoxManage modifyvm "Offline" --plugcpu 1 VBoxManage startvm "Offline" sleep 110 touch hasil-kiwix-ab-192.168.0.3-3CORE-2048M.txt ab -kc 150 -t 60 http://192.168.0.3:8080/wikipedia_id_all_novid_2018-07/ >> hasil-kiwix-ab-192.168.0.3-3CORE-2048M.txt ssh onno@192.168.0.3 /home/pi/kiwix-off.sh & ssh onno@192.168.0.3 /home/onno/kiwix-on.sh & VBoxManage controlvm "Offline" acpipowerbutton sleep 30 VBoxManage modifyvm "Offline" --memory 4096 VBoxManage modifyvm "Offline" --unplugcpu 3 VBoxManage modifyvm "Offline" --plugcpu 2 VBoxManage modifyvm "Offline" --plugcpu 1 VBoxManage startvm "Offline" sleep 110 touch hasil-kiwix-ab-192.168.0.3-3CORE-4096M.txt ab -kc 150 -t 60 http://192.168.0.3:8080/wikipedia_id_all_novid_2018-07/ >> hasil-kiwix-ab-192.168.0.3-3CORE-4096M.txt ssh onno@192.168.0.3 /home/pi/kiwix-off.sh &
ssh onno@192.168.0.3 /home/onno/kiwix-on.sh & VBoxManage controlvm "Offline" acpipowerbutton sleep 30 VBoxManage modifyvm "Offline" --memory 512 VBoxManage modifyvm "Offline" --plugcpu 3 VBoxManage modifyvm "Offline" --plugcpu 2 VBoxManage modifyvm "Offline" --plugcpu 1 VBoxManage startvm "Offline" sleep 110 touch hasil-kiwix-ab-192.168.0.3-4CORE-512M.txt ab -kc 150 -t 60 http://192.168.0.3:8080/wikipedia_id_all_novid_2018-07/ >> hasil-kiwix-ab-192.168.0.3-4CORE-512M.txt ssh onno@192.168.0.3 /home/pi/kiwix-off.sh & ssh onno@192.168.0.3 /home/onno/kiwix-on.sh & VBoxManage controlvm "Offline" acpipowerbutton sleep 30 VBoxManage modifyvm "Offline" --memory 1024 VBoxManage modifyvm "Offline" --plugcpu 3 VBoxManage modifyvm "Offline" --plugcpu 2 VBoxManage modifyvm "Offline" --plugcpu 1 VBoxManage startvm "Offline" sleep 110 touch hasil-kiwix-ab-192.168.0.3-4CORE-1024M.txt ab -kc 150 -t 60 http://192.168.0.3:8080/wikipedia_id_all_novid_2018-07/ >> hasil-kiwix-ab-192.168.0.3-4CORE-1024M.txt ssh onno@192.168.0.3 /home/pi/kiwix-off.sh & ssh onno@192.168.0.3 /home/onno/kiwix-on.sh & VBoxManage controlvm "Offline" acpipowerbutton sleep 30 VBoxManage modifyvm "Offline" --memory 2048 VBoxManage modifyvm "Offline" --plugcpu 3 VBoxManage modifyvm "Offline" --plugcpu 2 VBoxManage modifyvm "Offline" --plugcpu 1 VBoxManage startvm "Offline" sleep 110 touch hasil-kiwix-ab-192.168.0.3-4CORE-2048M.txt ab -kc 150 -t 60 http://192.168.0.3:8080/wikipedia_id_all_novid_2018-07/ >> hasil-kiwix-ab-192.168.0.3-4CORE-2048M.txt ssh onno@192.168.0.3 /home/pi/kiwix-off.sh & ssh onno@192.168.0.3 /home/onno/kiwix-on.sh & VBoxManage controlvm "Offline" acpipowerbutton sleep 30 VBoxManage modifyvm "Offline" --memory 4096 VBoxManage modifyvm "Offline" --plugcpu 3 VBoxManage modifyvm "Offline" --plugcpu 2 VBoxManage modifyvm "Offline" --plugcpu 1 VBoxManage startvm "Offline" sleep 110 touch hasil-kiwix-ab-192.168.0.3-4CORE-4096M.txt ab -kc 150 -t 60 http://192.168.0.3:8080/wikipedia_id_all_novid_2018-07/ >> hasil-kiwix-ab-192.168.0.3-4CORE-4096M.txt ssh onno@192.168.0.3 /home/pi/kiwix-off.sh &