Biasanya kalau kita menggunakan windows, maka untuk menguji kecepatan bandwidth internet cukup membuka speedtest.net. Tapi hal ini tidak mungkin dilakukan jika menggunakan Command Line Interface (CLI) linux mengingat hal itu tidak bisa menampilkan tampilan FLASH.
Tapi ada kabar baiknya buat Anda pengguna VPS linux. Kita bisa menggunakan script python buatan Matt Martz yang bernama speedtest-cli untuk menjalakan test speedtest.net dari command line. Untuk menjalankan script ini dibutuhkan software python yang telah di install pada VPS.
Cara instal dan melakukan testing :
1. Silahkan instal python dengan perintah sebagai berikut :
Untuk OS Redhat/Centos : yum install python
Untuk OS Debian/Ubuntu : apt-get install python
2. Download file speedtest-cli dengan perintah berikut :
wget https://klikhost.com/speedtest_cli.py
3. Untuk melihat daftar perintah, ketik : python speedtest_cli.py -h
Command line interface for testing internet bandwidth using speedtest.net.
————————————————————————–
https://github.com/sivel/speedtest-cli
options: -h, --help show this help message and exit --share Generate and provide a URL to the speedtest.net share results image --simple Suppress verbose output, only show basic information --list Display a list of speedtest.net servers sorted by distance --server=SERVER Specify a server ID to test against --mini=MINI URL of the Speedtest Mini server --source=SOURCE Source IP address to bind to --version Show the version number and exit
4. Untuk melakukan testing menggunakan server dengan ping terbaik, ketik perintah berikut :
python speedtest_cli.py --share
Berikut contoh hasilnya :
root@server1 [~]# python speedtest_cli.py –share
Retrieving speedtest.net configuration…
Retrieving speedtest.net server list…
Testing from Input Output Flood LLC (199.167.134.163)…
Selecting best server based on ping…
Hosted by Waveform Technology (Troy, MI) [23.04 km]: 27.021 ms
Testing download speed………………………………….
Download: 27.16 Mbit/s
Testing upload speed…………………………………………..
Upload: 21.40 Mbit/s
Share results: http://www.speedtest.net/result/3364732683.png
Anda bisa melihat hasil berupa gambar dengan mengkopi URL yang saya beri tanda merah di atas.
5. Untuk melakukan testing dengan server yang kita inginkan, silahkan ketik perintah berikut :
python speedtest_cli.py --server=SERVER
Ganti warna merah dengan ID server yang bisa Anda pilih di bawah ini :
3803) GTA (Tumon, Guam) [12629.97 km]
3291) iConnect (Tamuning, Guam) [12629.97 km]
1332) Docomo Pacific (Tamuning, Guam) [12629.97 km]
2550) IT&E (Guam, Guam) [12635.94 km]
1270) Telkom SA (SAIX) (Cape Town, South Africa) [12648.77 km]
1491) Vodacom (Cape Town, South Africa) [12648.77 km]
2962) MTN SA (Cape Town, South Africa) [12648.77 km]
1818) MWEB Connect (Cape Town, South Africa) [12648.77 km]
2381) Neotel (Cape Town, South Africa) [12648.77 km]
4428) CMCC-GZ (Guangzhou, China) [12653.35 km]
4515) CMCC-SZ (Shenzhen, China) [12710.40 km]
1536) STC (Hong Kong, China) [12738.29 km]
1890) Telin (Hong Kong, China) [12738.29 km]
2993) Website Solution Limited (Hong Kong, S.A.R.) [12741.32 km]
2679) Bharti Airtel Ltd (Hyderabad, India) [12752.02 km]
3630) Excell Media Pvt Ltd (Hyderabad, India) [12752.02 km]
3395) BEAM TELECOM (Hyderabad, India) [12752.02 km]
4491) Vainavi Industries Ltd (Hyderabad, India) [12752.02 km]
4567) BROADNET (Hyderabad, India) [12752.02 km]
3984) Pioneer Elabs Limited. (Hyderabad, India) [12752.46 km]
1849) CTM Internet Services (Macau, Macau) [12753.67 km]
1835) Connect Internet Services (Suva, Fiji) [12800.08 km]
2139) Vodafone Fiji (Suva, Fiji) [12800.08 km]
2876) Unwired Fiji (Suva, Fiji) [12800.08 km]
1284) Vodacom Business (Pretoria, South Africa) [12856.82 km]
3877) About IT Online (PTY) Ltd (Pretoria, South Africa) [12856.82 km]
4450) Novicus Systems (Pretoria, South Africa) [12856.82 km]
4555) Telkom Internet (Centurion, South Africa) [12861.53 km]
1376) Neology (Pty) Ltd (Midrand, South Africa) [12865.83 km]
4086) AfricaINX (Midrand, South Africa) [12865.83 km]
1879) Telkom SA (SAIX) (Randburg, South Africa) [12868.79 km]
1743) MTN Business (Randburg, South Africa) [12868.79 km]
2990) MTN SA (Johannesburg, South Africa) [12873.15 km]
1817) MWEB Connect (Johannesburg, South Africa) [12873.15 km]
1440) Vodacom (Johannesburg, South Africa) [12873.15 km]
1620) Cellc (Johannesburg, South Africa) [12873.15 km]
2380) Neotel (Johannesburg, South Africa) [12873.15 km]
2552) FPT Telecom (Hanoi, Vietnam) [12921.44 km]
4026) Viettel (Hanoi, Vietnam) [12921.44 km]
3062) VNPT-HANOI (Hanoi, Vietnam) [12921.44 km]
1750) CMC Telecom Infrastructure (Hanoi, Vietnam) [12921.44 km]
3107) VNPT Group (Hanoi, Vietnam) [12921.44 km]
2428) Viettel IDC (Hanoi, Vietnam) [12921.44 km]
1969) NPC (Hai Phong, Vietnam) [12942.64 km]
3959) Cloud Connect Networks (George, South Africa) [12948.28 km]
4103) Vodacom Lesotho (Maseru, Lesotho) [13033.79 km]
4194) Econet Telecom Lesotho (Maseru, Lesotho) [13033.79 km]
3734) Atria Convergence Technologies (Bangalore, India) [13164.48 km]
2564) Bharti Airtel Ltd (Bangalore, India) [13164.48 km]
2280) Vodacom Mozambique (Maputo, Mozambique) [13220.60 km]
3759) Teledata de Moçambique (Maputo, Mozambique) [13220.60 km]
1242) TvCabo Mozambique (Maputo, Mozambique) [13220.60 km]
3367) Moztel-ClubNet (Maputo, Mozambique) [13220.60 km]
1803) Beeline Lao (Vientiane, Lao PDR) [13253.24 km]
2249) Star Telecom (Unitel) (Vientiane, Lao PDR) [13253.24 km]
1936) Lao Telecom (Vientiane, Lao PDR) [13253.24 km]
1826) Vodafone India (Chennai, India) [13266.02 km]
2649) Aircel (Chennai, India) [13266.02 km]
4165) MTS India (Chennai, India) [13266.02 km]
2583) Bharti Airtel Ltd (Chennai, India) [13266.02 km]
4299) Yatanarpon Teleport (Yangon, Myanmar) [13315.25 km]
4508) OpenWeb (Ballito, South Africa) [13342.96 km]
1285) Vodacom Business (Durban, South Africa) [13349.11 km]
1881) Telkom SA (SAIX) (Durban, South Africa) [13349.11 km]
2963) MTN SA (Durban, South Africa) [13349.11 km]
3928) MWEB Connect (Durban, South Africa) [13349.11 km]
1714) iSPACE (Umhlanga, South Africa) [13352.06 km]
3756) Globe Telecom (Tarlac, Philippines) [13375.15 km]
2195) Aride Ocean Data Center (Kochi, India) [13409.85 km]
2239) Comclark (Angeles, Philippines) [13411.31 km]
1002) SkyBroadband (Metro Manila, Philippines) [13453.92 km]
3948) Globe Telecom (Antipolo, Philippines) [13456.89 km]
262) BayanTel (Quezon City, Philippines) [13457.01 km]
2471) Converge ICT (Pasig City, Philippines) [13461.32 km]
921) PLDT (Makati, Philippines) [13466.03 km]
1631) Smart Communications, Inc. (Makati, Philippines) [13466.03 km]
1238) Eastern Communications (Makati, Philippines) [13466.03 km]
1169) Globe Telecom (Makati, Philippines) [13466.03 km]
4229) Philippine Global Communications, Inc. (Makati, Philippines) [13466.03 km]
3716) CMC Telecom Infrastructure (Da Nang, Vietnam) [13471.43 km]
3060) Cable & Wireless Seychelles (Victoria, Seychelles) [13472.29 km]
3766) Airtel Seychelles (Victoria, Sychelles) [13475.16 km]
3947) Globe Telecom (Imus, Philippines) [13484.67 km]
1753) Smart Communications, Inc. (Metro Manila, Philippines) [13517.12 km]
4599) Cablelink Internet Services Inc. (Metro Manila, Philippines) [13517.12 km]
3757) Globe Telecom (Batangas, Philippines) [13551.44 km]
4347) cattelecom (Bangkok, Thailand) [13705.04 km]
2459) SBN (Bangkok, Thailand) [13705.04 km]
3855) dtac trinet (Bangkok, Thailand) [13705.04 km]
1219) STS Group (Bangkok, Thailand) [13705.04 km]
428) adslthailand.com (Bangkok, Thailand) [13705.04 km]
3147) AIS (Bangkok, Thailand) [13705.04 km]
4222) Shama Thunder (Bangkok, Thailand) [13705.04 km]
4180) GamerXP Network (Bangkok, Thailand) [13705.04 km]
4250) TSAlive Network (Bangkok, Thailand) [13705.04 km]
655) DHIRAAGU (Male, Republic of Maldives) [13846.99 km]
2454) Ooredoo Maldives (Male, Republic of Maldives) [13846.99 km]
1428) Raajje Online (Male, Republic of Maldives) [13846.99 km]
1760) Smart Communications (Cebu City, Philippines) [13849.81 km]
3735) Globe Telecom (Cebu City, Philippines) [13849.81 km]
1672) Data Telecom Service (Antananarivo, Madagascar) [13957.83 km]
2256) Smart Axiata (Phnom Penh, Cambodia) [13975.45 km]
2504) ONLINE (Phnom Penh, Cambodia) [13975.45 km]
4182) EZECOM (Phnom Penh, Cambodia) [13975.45 km]
1788) Metfone (Phnom Penh, Cambodia) [13975.45 km]
3281) OPENNET (Phnom Penh, Cambodia) [13975.45 km]
2038) MLS, Micro Logic Systems (Noumea, New Caledonia) [14064.52 km]
2152) Office des Postes et Telecommunications (Noumea, New Caledonia) [14064.52 km]
1648) CMC Telecom Infra (Ho Chi Minh City, Vietnam) [14065.70 km]
3381) NetNam JSC (Ho Chi Minh City, Vietnam) [14065.70 km]
2515) FPT Telecom (Ho Chi Minh City, Vietnam) [14065.70 km]
2427) Viettel IDC (Ho Chi Minh City, Vietnam) [14065.70 km]
4192) Globe Telecom (Davao City, Philippines) [14138.45 km]
1307) Prince of Songkla Univ (Surat Thani Province, Thailand) [14203.38 km]
960) Enternet Online Ltd (Tauranga, New Zealand) [14221.37 km]
3986) TrustPower Ltd (Tauranga, New Zealand) [14221.37 km]
4093) NetSmart Ltd (Tauranga, New Zealand) [14221.37 km]
465) NOW (Napier, New Zealand) [14259.82 km]
2857) REAP-ISP (Taupo, New Zealand) [14281.17 km]
1687) Vodafone New Zealand (Auckland, New Zealand) [14283.18 km]
2757) Orcon Internet Ltd (Auckland, New Zealand) [14283.18 km]
2720) WorldNet Services Ltd. (Auckland, New Zealand) [14283.18 km]
4135) Telecom NZ LTD (Auckland, New Zealand) [14283.18 km]
2382) Woosh Wireless (Auckland, New Zealand) [14283.18 km]
3639) Lightwire Limited (Hamilton, New Zealand) [14294.76 km]
3752) theCloud Limited (Hamilton, New Zealand) [14294.76 km]
1306) Prince of Songkla Univ (Phuket Province, Thailand) [14328.33 km]
2979) phatthalung technical college (Phatthalung, Thialand) [14379.86 km]
1308) Computer Center, Prince of Songkla University (Trang Province, Thailand) [ 14380.86 km]
3797) Inspire Net Ltd (Palmerston North, New Zealand) [14403.31 km]
1305) Prince of Songkla Univ (Pattani Province, Thailand) [14474.66 km]
4118) Telecom NZ LTD (Wellington, New Zealand) [14512.47 km]
4518) CityLink Ltd (Wellington, New Zealand) [14512.47 km]
3929) Digicel PNG LTD (Port Moresby, Papua New Guinea) [14595.38 km]
473) OCE:PenangFON (Penang, Malaysia) [14626.75 km]
3471) DST Multimedia Sdn Bhd (Tungku, Brunei) [14637.53 km]
1618) Telekom Brunei Berhad (Bandar Seri Begawan, Brunei) [14644.87 km]
2336) Amuri.net (Culverden, New Zealand) [14726.18 km]
3925) Cahri (Saint Leu, Reunion) [14742.63 km]
922) Snap Internet (Christchurch, New Zealand) [14777.50 km]
4136) Telecom NZ LTD (Christchurch, New Zealand) [14777.50 km]
3825) Orange (Port Louis, Mauritius) [14848.22 km]
1704) Mauritius Telecom (Port Louis, Mauritius) [14848.22 km]
3813) Mauritius Telecom Ltd (Rose-Hill, Mauritius) [14850.37 km]
2510) Emtel Ltd (Rose-Hill, Mauritius) [14850.37 km]
3827) Mauritius Telecom Ltd (Floreal, Mauritius) [14858.56 km]
1825) Maxis (Kuala Lumpur, Malaysia) [14892.23 km]
4067) Mykris (Kuala Lumpur, Malaysia) [14892.23 km]
1701) Yes 4G (Kuala Lumpur, Malaysia) [14892.23 km]
1848) U Mobile (Kuala Lumpur, Malaysia) [14892.23 km]
4348) Exabytes Cloud Sdn Bhd (Kuala Lumpur, Malaysia) [14892.23 km]
4487) Digistar Rauland MSC Sdn Bhd (Kuala Lumpur, Malaysia) [14892.23 km]
480) OCE:SentralFON (Kuala Lumpur, Malaysia) [14892.23 km]
3758) DiGi (Petaling Jaya, Malaysia) [14897.70 km]
4514) Asian Broadcasting Network Sdn. Bhd. (Puchong, Malaysia) [14905.33 km]
1610) TM Net (Cyberjaya, Malaysia) [14915.57 km]
3924) IPSAT SDN BHD (Cyberjaya, Malaysia) [14915.57 km]
3914) SingTel (Singapore, Republic of Singapore) [15110.67 km]
2054) Viewqwest Pte Ltd (Singapore, Republic of Singapore) [15110.67 km]
4235) StarHub Mobile Pte Ltd (Singapore, Republic of Singapore) [15110.67 km]
4498) Globe Telecom (Singapore, Republic of Singapore) [15110.67 km]
4403) PT. XL Axiata, Tbk (Singapore, Republic of Singapore) [15110.67 km]
2213) SGIX (Singapore, Republic of Singapore) [15110.67 km]
367) NewMedia Express (Singapore, Republic of Singapore) [15110.67 km]
1883) Telin (Singapore, Republic of Singapore) [15110.67 km]
4091) PT. Telekomunikasi Indonesia (Batam, Indonesia) [15137.61 km]
1855) Telin (Batam, Indonesia) [15137.61 km]
4131) SouthLoop (Invercargill, New Zealand) [15205.95 km]
4048) Vodafone Hutchison Australia (BE) (Brisbane, Australia) [15498.29 km]
2604) Telstra (Brisbane, Australia) [15498.60 km]
1594) ‘Yes’ Optus (Brisbane, Australia) [15498.60 km]
2323) GCOMM Pty. Ltd. (Brisbane, Australia) [15498.60 km]
2165) Internode (Brisbane, Australia) [15498.60 km]
4030) Telekomunikasi Indonesia (Banjarmasin, Indonesia) [15554.21 km]
784) Elektrindo Data Nusantara (Palembang, Indonesia) [15591.43 km]
4054) PT. Telekomunikasi Indonesia (Makasar, Indonesia) [15634.37 km]
4153) Internode (Darwin, Australia) [15896.49 km]
3703) FirstMedia (Tangerang, Indonesia) [15945.69 km]
4117) PT. Web Data Solusindo (Tangerang, Indonesia) [15945.69 km]
4210) PT Smartfren Telecom (Jakarta, Indonesia) [15950.22 km]
4350) PT. Telekomunikasi Indonesia (Jakarta, Indonesia) [15950.22 km]
282) CBN (Jakarta, Indonesia) [15950.22 km]
4402) PT. XL Axiata, Tbk (Jakarta, Indonesia) [15950.22 km]
797) Biznet Networks (Jakarta, Indonesia) [15950.22 km]
880) IM2 (Jakarta, Indonesia) [15950.22 km]
4594) Bigpipes (Jakarta, Indonesia) [15950.22 km]
1645) Wigo (Jakarta, Indonesia) [15950.22 km]
3822) PT Telekomunikasi Selular (Bekasi, Indonesia) [15954.52 km]
3070) PT. Pasifik Satelit Nusantara (Bekasi, Indonesia) [15954.52 km]
3559) Kings Network Indonesia (Bekasi, Indonesia) [15954.52 km]
2629) Telstra (Sydney, Australia) [16016.77 km]
3505) Vodafone Hutchison Australia (NN) (Sydney, Australia) [16016.77 km]
2173) Internode (Sydney, Australia) [16016.77 km]
1267) ‘Yes’ Optus (Sydney, Australia) [16016.77 km]
3874) Telekomunikasi Indonesia (Surabaya, Indonesia) [16017.92 km]
788) D~NET (Surabaya, Indonesia) [16017.92 km]
953) Biznet Networks (Surabaya, Indonesia) [16017.92 km]
2350) Hypernet Indodata (Surabaya, Indonesia) [16017.92 km]
3873) Telekomunikasi Indonesia (Bandung, Indonesia) [16028.02 km]
4344) Neuviz (Bandung, Indonesia) [16028.02 km]
2348) Hypernet Indodata (Bandung, Indonesia) [16028.02 km]
1499) Greenlinks (Bandung, Indonesia) [16028.02 km]
1373) PT Telekomunikasii (Yogyakarta, Indonesia) [16107.58 km]
4102) PT. Hipernet Indodata (Denpasar, Indonesia) [16122.72 km]
4028) PT. Telekomunikasi Indonesia (Denpasar, Indonesia) [16122.72 km]
986) UberGlobal (Canberra, Australia) [16258.17 km]
2166) Internode (Canberra, Australia) [16258.17 km]
2167) Internode (Hobart, Australia) [16696.34 km]
2225) Telstra (Melbourne, Australia) [16712.70 km]
1564) ‘Yes’ Optus (Melbourne, Australia) [16712.70 km]
2169) Internode (Melbourne, Australia) [16712.70 km]
3252) Vodafone Hutchison Australia (TE) (Melbourne, Australia) [16716.61 km]
2628) Telstra (Adelaide, Australia) [17099.19 km]
4051) Vodafone Hutchison Australia (AE) (Adelaide, Australia) [17099.19 km]
234) Internode (Adelaide, Australia) [17099.19 km]
3172) NODE1 Internet (Geraldton, Australia) [18289.02 km]
2627) Telstra (Perth, Australia) [18545.14 km]
3254) Vodafone Hutchison Australia (PH) (Perth, Australia) [18545.14 km]
1931) IX Australia (Perth, Australia) [18545.14 km]
2171) Internode (Perth, Australia) [18545.14 km]
3414) Optus (Perth, Australia) [18545.14 km]
LIST SERVER SELENGKAPNYA BISA DILIHAT DI https://www.speedtestserver.com/
Misal Anda ingin menguji VPS USA ke Indonesia menggunakan servernya smartfren (ID = 4210), maka ketik perintah berikut :
python speedtest_cli.py --server=4210
Contoh hasilnya seperti di bawah ini :
python speedtest_cli.py –server=4210
Retrieving speedtest.net configuration…
Retrieving speedtest.net server list…
Testing from Input Output Flood LLC (199.167.134.163)…
Hosted by PT Smartfren Telecom (Jakarta) [15860.00 km]: 33.061 ms
Testing download speed………………………………….
Download: 14.22 Mbit/s
Testing upload speed…………………………………………..
Upload: 6.47 Mbit/s
Jika Anda testing VPS USA ke indonesia, maka hasilnya akan turun karena jarak yang jauh dan routing yang lebih komplek dibanding jika ditest ke sesama server di Amerika. Jadi jangan berharap bahwa jika sewa VPS USA dengan port speed 100 mbps maka dapatnya juga 100 mbps pula sampai di Indonesia… Hasilnya pasti di bawah itu 🙂
Note :
Jangan rancu membedakan antara MB/s dan Mb/s.
MB/s = Mega Bytes / second = MBps
Mb/s = Mbit/s = Mega bits / second = Mbps
1 MB/s = 8 Mb/s = 8 Mbit/s = 8 mbps
10 MB/s = 80 mbps
10 Mbit/s = 1,25 MB/s
100 mbps = 100 Mb/s = 12,5 MB/s =
Bit = kecepatan transfer data
Bytes = ukuran file yang ditransfer
Jadi jika tertera 10 Mbit/s, maka sama dengan 10 mbps.
Umumnya untuk server, patokannya yang sering dipakai adalah bit. Makanya ada istilah gigabit, megabit, terabit dst.
Semoga bermanfaat!
Sumber referensi : https://github.com/sivel/speedtest-cli