Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


simple Benchmark script
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

simple Benchmark script

Hello,

I used the benchmark script from budgetproviders, but the site is now down :( Does anyone have the script or something similar?

A benchmark test looked like that:
Benchmark Script – Version 2013.04.22.21.28
Budget Providers – www.budgetproviders.com
Part A: System Information
CPU model : Intel(R) Xeon(R) CPU X3330 @ 2.66GHz
Number of cores : 1
CPU frequency : 2000.000 MHz
Total amount of RAM : 64 MB
Total amount of swap : 0 MB
System uptime : 1 day, 20:30,
Part B: Disk Performance
I/O Speed – Test #1 : 101 MB/s
I/O speed – Test #2 : 103 MB/s
I/O speed – Test #3 : 99.5 MB/s
I/O speed – Test #4 : 103 MB/s
I/O speed – Test #5 : 102 MB/s
Part C: Network Download Speed
Download speed from CacheFly: 27.6MB/s
Download speed from ShoveHost, San Diego, CA: 4.96MB/s
Download speed from Coloat, Atlanta, GA: 840KB/s
Download speed from HostDime, New Delhi, India: 4.24MB/s
Download speed from Softlayer, Dallas, TX: 10.1MB/s
Download speed from Linode, Tokyo, Japan: 4.26MB/s
Download speed from i3d.net, Netherlands: 60.2MB/s
Download speed from Leaseweb, Haarlem, Netherlands: 28.0MB/s
Download speed from SingleHop, Phoenix, AZ : 7.34MB/s
Download speed from Softlayer, Singapore: 3.79MB/s
Download speed from Softlayer, Seattle, WA: 8.42MB/s
Download speed from Softlayer, San Jose, CA: 8.17MB/s
Download speed from Softlayer, Washington, DC: 15.3MB/s

P.S. I don't want to use ServerBear.com all the time, it's too much effort.

Thanks in advance!

Comments

  • trexostrexos Member

    Thank you! Works great, but does anyone have the original script?

  • SpiritSpirit Member

    Original is:

    #!/bin/bash
    #written by akamaras.com
    
    cname=$(cat /proc/cpuinfo|grep name|head -1|awk '{ $1=$2=$3=""; print }')
    cores=$(cat /proc/cpuinfo|grep MHz|wc -l)
    freq=$(cat /proc/cpuinfo|grep MHz|head -1|awk '{ print $4 }')
    tram=$(free -m | awk 'NR==2'|awk '{ print $2 }')
    swap=$(free -m | awk 'NR==4'| awk '{ print $2 }')
    up=$(uptime|awk '{ $1=$2=$(NF-6)=$(NF-5)=$(NF-4)=$(NF-3)=$(NF-2)=$(NF-1)=$NF=""; print }')
    cache=$((wget -O /dev/null http://cachefly.cachefly.net/100mb.test) 2>&1 | tail -2 | head -1 | awk '{print $3 $4 }')
    io=$( (dd if=/dev/zero of=test_$$ bs=64k count=16k conv=fdatasync &&rm -f test_$$) 2>&1 | tail -1| awk '{ print $(NF-1) $NF }')
    echo "CPU model : $cname"
    echo "Number of cores : $cores"
    echo "CPU frequency : $freq MHz"
    echo "Total amount of ram : $tram MB"
    echo "Total amount of swap : $swap MB"
    echo "System uptime : $up"
    echo "Download speed : $cache "
    echo "I/O speed : $io"
    

    And longer version with updated/working speedtest URLs:

    #!/bin/bash
    
    cname=$( awk -F: '/model name/ {name=$2} END {print name}' /proc/cpuinfo )
    cores=$( awk -F: '/model name/ {core++} END {print core}' /proc/cpuinfo )
    freq=$( awk -F: ' /cpu MHz/ {freq=$2} END {print freq}' /proc/cpuinfo )
    tram=$( free -m | awk 'NR==2 {print $2}' )
    swap=$( free -m | awk 'NR==4 {print $2}' )
    up=$(uptime|awk '{ $1=$2=$(NF-6)=$(NF-5)=$(NF-4)=$(NF-3)=$(NF-2)=$(NF-1)=$NF=""; print }')
    
    echo "CPU model : $cname"
    echo "Number of cores : $cores"
    echo "CPU frequency : $freq MHz"
    echo "Total amount of ram : $tram MB"
    echo "Total amount of swap : $swap MB"
    echo "System uptime : $up"
    
    cachefly=$( wget -O /dev/null http://cachefly.cachefly.net/100mb.test 2>&1 | awk '/\/dev\/null/ {speed=$3 $4} END {gsub(/\(|\)/,"",speed); print speed}' )
    echo "Download speed from CacheFly: $cachefly "
    linodeatl=$( wget -O /dev/null http://speedtest.atlanta.linode.com/100MB-atlanta.bin 2>&1 | awk '/\/dev\/null/ {speed=$3 $4} END {gsub(/\(|\)/,"",speed); print speed}' )
    echo "Download speed from Linode, Atlanta, GA: $linodeatl "
    linodeatl=$( wget -O /dev/null http://speedtest.newark.linode.com/100MB-newark.bin 2>&1 | awk '/\/dev\/null/ {speed=$3 $4} END {gsub(/\(|\)/,"",speed); print speed}' )
    echo "Download speed from Linode, Newark, NJ: $linodeatl "
    linodedltx=$( wget -O /dev/null http://speedtest.dallas.linode.com/100MB-dallas.bin 2>&1 | awk '/\/dev\/null/ {speed=$3 $4} END {gsub(/\(|\)/,"",speed); print speed}' )
    echo "Download speed from Linode, Dallas, TX: $linodedltx "
    linodejp=$( wget -O /dev/null http://speedtest.tokyo.linode.com/100MB-tokyo.bin 2>&1 | awk '/\/dev\/null/ {speed=$3 $4} END {gsub(/\(|\)/,"",speed); print speed}' )
    echo "Download speed from Linode, Tokyo, JP: $linodejp "
    linodeuk=$( wget -O /dev/null http://speedtest.london.linode.com/100MB-london.bin 2>&1 | awk '/\/dev\/null/ {speed=$3 $4} END {gsub(/\(|\)/,"",speed); print speed}' )
    echo "Download speed from Linode, London, UK: $linodeuk "
    leaseweb=$( wget -O /dev/null http://mirror.leaseweb.com/speedtest/100mb.bin 2>&1 | awk '/\/dev\/null/ {speed=$3 $4} END {gsub(/\(|\)/,"",speed); print speed}' )
    echo "Download speed from Leaseweb, Haarlem, NL: $leaseweb "
    slsg=$( wget -O /dev/null http://speedtest.sng01.softlayer.com/downloads/test100.zip 2>&1 | awk '/\/dev\/null/ {speed=$3 $4} END {gsub(/\(|\)/,"",speed); print speed}' )
    echo "Download speed from Softlayer, Singapore: $slsg "
    slwa=$( wget -O /dev/null http://speedtest.sea01.softlayer.com/downloads/test100.zip 2>&1 | awk '/\/dev\/null/ {speed=$3 $4} END {gsub(/\(|\)/,"",speed); print speed}' )
    echo "Download speed from Softlayer, Seattle, WA: $slwa "
    slsjc=$( wget -O /dev/null http://speedtest.sjc01.softlayer.com/downloads/test100.zip 2>&1 | awk '/\/dev\/null/ {speed=$3 $4} END {gsub(/\(|\)/,"",speed); print speed}' )
    echo "Download speed from Softlayer, San Jose, CA: $slsjc "
    slwdc=$( wget -O /dev/null http://speedtest.wdc01.softlayer.com/downloads/test100.zip 2>&1 | awk '/\/dev\/null/ {speed=$3 $4} END {gsub(/\(|\)/,"",speed); print speed}' )
    echo "Download speed from Softlayer, Washington, DC: $slwdc "
    io=$( ( dd if=/dev/zero of=test_$$ bs=64k count=16k conv=fdatasync && rm -f test_$$ ) 2>&1 | awk -F, '{io=$NF} END { print io}' )
    echo "I/O speed : $io"
    Thanked by 1dedicados
  • trexostrexos Member

    Thank you. Works great!

Sign In or Register to comment.