Mencoba Speedtest di Linux

Speedtest lewat linux.

speedtest-cli tests your bandwidth througput using speedtest.net. Speedtest.net is a web service for testing your broadband connection by downloading a file from a nearby speedtest.net server on the web. This tool allows you to access the service from the command line.

Instalasi

Buka terminal lalu ketik..

$ sudo apt update && sudo apt install python-pip
$ sudo pip install speedtest-cli

Penggunaan

Format:

$ speedtest-cli
$ speedtest-cli [OPTION]

Perintah speedtest-cli bisa dijalankan tanpa atau dengan opsi tertentu. Kalau dijalankan tanpa opsi, program ini otomatis akan memilih server terdekat secara acak.

Contoh:

$ speedtest-cli 
Retrieving speedtest.net configuration...
Testing from XXXXXXXXXX (xxx.xxx.xxx.xxx)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by ZZZZZZZZZZ [8.31 km]: 71.937 ms
Testing download speed................................................................................
Download: 2.50 Mbit/s
Testing upload speed....................................................................................................
Upload: 0.52 Mbit/s

Opsi --share

Untuk menampilkan link hasil pengetesan, tambahkan opsi --share. Hasilnya bisa dilihat di bagian Share results.

Contoh:

$ speedtest-cli --share
Retrieving speedtest.net configuration...
Testing from XXXXXXXXXX (xxx.xxx.xxx.xxx)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by YYYYYYYYYY [72.09 km]: 44.654 ms
Testing download speed................................................................................
Download: 3.29 Mbit/s
Testing upload speed....................................................................................................
Upload: 0.67 Mbit/s
Share results: http://www.speedtest.net/result/1234567890.png
speedtest-cli shared result
speedtest-cli shared result

Link hasil pengetesan berupa file gambar .png yang bisa dicopy-paste dan dilihat lewat web browser, atau didownload dengan perintah wget.

$ wget http://www.speedtest.net/result/1234567890.png

Opsi --server

Tambahkan opsi --server CODE untuk menentukan server tertentu yang akan dijadikan target pengetesan. Ganti CODE dengan nomor kode server yang sebenarnya.

Contoh:

$ speedtest-cli --server xxxxx --share
Retrieving speedtest.net configuration...
Testing from XXXXXXXXXX (xxx.xxx.xxx.xxx)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by YYYYYYYYYY [2184.11 km]: 623.107 ms
Testing download speed................................................................................
Download: 2.77 Mbit/s
Testing upload speed....................................................................................................
Upload: 0.61 Mbit/s
Share results: http://www.speedtest.net/result/1234567890.png

Untuk melihat daftar server yang tersedia berikut kodenya, gunakan opsi --list

$ speedtest-cli --list

Opsi lainnya

Untuk mengetahui opsi lain yang tersedia serta cara penggunaannya, ketik man speedtest-cli.

Selamat mencoba, semoga bermanfaat.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s