You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
416 B

  1. #!/bin/bash
  2. # Colors
  3. CSI="\033["
  4. CEND="${CSI}0m"
  5. CRED="${CSI}1;31m"
  6. CGREEN="${CSI}1;32m"
  7. # Check root access
  8. if [[ "$EUID" -ne 0 ]]; then
  9. echo -e "${CRED}Sorry, you need to run this as root${CEND}"
  10. exit 1
  11. fi
  12. wget -qO bench.sh https://git.virtubox.net/virtubox/vps-benchmark/raw/master/bench.sh
  13. chmod +x bench.sh
  14. ./bench.sh
  15. # We're done !
  16. echo ""
  17. echo -e " ${CGREEN}Benchmark successful !${CEND}"
  18. echo ""