SpeedTest.net adalah aplikasi untuk menguji kecepatan internet yang bisa digunakan di PC lokal ataupun server. Dalam tutorial ini saya akan meberikan tutorial Cara Install dan Menggunakan SpeedTest di Server. Saya menggunakan Centos 7 sebagai OSnya.
Berikut adalah tutorialnya
- Login ke SSH Server
- Download dan Install script speedtest.
12wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.pychmod +x speedtest-cli
- Berikut adalah contoh penggunaannya.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950$ speedtest-cli -husage: speedtest-cli [-h] [--no-download] [--no-upload] [--single] [--bytes][--share] [--simple] [--csv][--csv-delimiter CSV_DELIMITER] [--csv-header] [--json][--list] [--server SERVER] [--exclude EXCLUDE][--mini MINI] [--source SOURCE] [--timeout TIMEOUT][--secure] [--no-pre-allocate] [--version]Command line interface for testing internet bandwidth using speedtest.net.--------------------------------------------------------------------------https://github.com/sivel/speedtest-clioptional arguments:-h, --help show this help message and exit--no-download Do not perform download test--no-upload Do not perform upload test--single Only use a single connection instead of multiple. Thissimulates a typical file transfer.--bytes Display values in bytes instead of bits. Does notaffect the image generated by --share, nor output from--json or --csv--share Generate and provide a URL to the speedtest.net shareresults image, not displayed with --csv--simple Suppress verbose output, only show basic information--csv Suppress verbose output, only show basic informationin CSV format. Speeds listed in bit/s and not affectedby --bytes--csv-delimiter CSV_DELIMITERSingle character delimiter to use in CSV output.Default ","--csv-header Print CSV headers--json Suppress verbose output, only show basic informationin JSON format. Speeds listed in bit/s and notaffected by --bytes--list Display a list of speedtest.net servers sorted bydistance--server SERVER Specify a server ID to test against. Can be suppliedmultiple times--exclude EXCLUDE Exclude a server from selection. Can be suppliedmultiple times--mini MINI URL of the Speedtest Mini server--source SOURCE Source IP address to bind to--timeout TIMEOUT HTTP timeout in seconds. Default 10--secure Use HTTPS instead of HTTP when communicating withspeedtest.net operated servers--no-pre-allocate Do not pre allocate upload data. Pre allocation isenabled by default to improve upload performance. Tosupport systems with insufficient memory, use thisoption to avoid a MemoryError--version Show the version number and exit
- Untuk melakukan test speed bisa langsung jalankan perintah berikut
1./speedtest-cli --share
Speedtest akan otomatis memilihkan server dengan jarak terdekat.
- Jika ingin melakukan test di lokasi tertentu bisa dengan perintah berikut
1./speedtest-cli --server 12345 --share
Ganti server id 12345 dengan id server yang diinginkan. Daftar lokasi server bisa dicek di halaman berikut