Speedtest-cli, auna bandwidth na haɗin haɗin ku daga tashar

mafi sauri-shirye game da

A cikin labarin na gaba zamu kalli Speedtest-cli. Wannan abokin ciniki ne mai sauƙi wanda aka rubuta a Python wanda zamu iya amfani dashi auna ma'aunin bandwidth na bangarorin haɗin yanar gizo da kuma cewa yana amfani da kayan aiki mafi sauri.net don bamu sakamako.

A kan yanar gizo za mu iya samun wasu hanyoyi da yawa don gwada saurin intanet ɗinmu, amma ina shakkar cewa za mu iya samun kowane irin sanyi kamar na ɗaya ookla gwajin sauri. Kowane lokaci lokaci, duk muna son gwada saurin intanet ta ziyartar gidan yanar gizon ku. Shin ba zai zama mafi kyau ba idan za mu iya gwada saurin mu na intanet ta amfani da speedtest.net ba tare da ziyartar gidan yanar gizon su ba kuma aikata shi kai tsaye daga tashar? Da kyau, wannan shine kawai abin da wannan abokin ciniki na ƙarshe yake yi.

Don haka a nan muna da mafi saurin gudu, da Mai amfani da layin umarni don gwada saurin intanet ɗinmu tare da speedtest.net. Wannan tsari ne mai sauƙi amma mai amfani wanda zai auna saurin haɗin Intanet ɗinku kuma zai nuna mana ƙimomin "kusanci".

Yanar gizo mai saurin gudu

Akwai yiwuwar cewa wannan kayan aikin zai nuna mana sakamako mara dacewa yayin aiki tare da Speedtest.net. Akwai ra'ayoyi da yawa don la'akari game da wannan lamarin:

  • Speedtest.net ya sauya zuwa amfani da gwaje-gwaje daga tsarkakakken soket maimakon kwatancen HTTP.
  • An rubuta wannan aikace-aikacen a Python. Sigogin daban-daban na Python za su aiwatar da wasu sassa na lambar da sauri fiye da wasu.
  • CPU gudun da iya aiki da ƙwaƙwalwar ajiya za su taka muhimmiyar rawa a cikin rashin daidaituwa tsakanin Speedtest.net har ma da sauran injuna a kan hanyar sadarwa ɗaya.

Sanya Speedtest CLI akan Ubuntu

Shigar da wannan shirin ya fi sauƙi fiye da yadda kuke tsammani. Kamar yadda riga yana cikin wuraren adana hukuma, za mu iya shigar da shi kawai ta hanyar buga umarnin mai zuwa a cikin tashar (Ctrl + Alt + T):

sudo apt install speedtest-cli

Tunda an rubuta kayan aikin a Python, suma za mu iya shigar da shi ta hanyar bututu a hanya mai sauƙi. Idan mun riga munyi pip shigar a kan kwamfutarmu, kawai zamu rubuta waɗannan masu zuwa a cikin tashar (Ctrl + Alt T):

sudo pip install speedtest-cli

Idan muna so sani game da wannan aikin, zaka iya tuntuɓar Shafin GitHub na guda.

Gwada saurin Intanet daga Terminal

Dole ne kawai mu fara tashar (Ctrl + Alt T). Sannan zamuyi rubutu a ciki gudun-cli kuma latsa Shigar.

gudun-cli

Hakanan zamu iya yin wasu canje-canje, kamar yadda a cikin gwajin da ta gabata, ƙimomin suna ciki ragowa. Yanzu muna iya sha'awar sha'awar karanta ƙa'idodin a ciki bytes. Don yin hakan kawai ƙara a –Bytes bayan umarnin ka.

bytes mafi sauri

Fa'idodi masu saurin Speed-cli

Gudun sauri-cli yana ba da yawancin zaɓuɓɓuka da gyare-gyare. Duk wanda yake so ya iya tuntuɓar kuma ya tabbatar da su duka ta hanyar bugawa a cikin tashar:

mafi sauri-cli -h

speedtest-cli -h

Idan muna so ko bukata sami jerin duk sabobin saurin a cikin hawan tsari na nesa zuwa yanayinmu. Dole ne kawai mu rubuta umarnin mai zuwa:

mafi saurin-ciko-jerin

speedtest-cli --list

A wannan yanayin, dole ne ku kalli waɗancan lambobin a ƙarshen hannun dama na hoton da ya gabata. Zamu iya zabar gudanar da gwaji daga waccan sabar ta hanyar samarda shaidar ta ta amfani da wannan umarni:

speedtest-cli --server 922

Kamar yadda muka gani yanzu, wannan kayan aiki mai ban sha'awa da ake kira saurin gudu wanda za'a iya amfani dashi don gwada saurin intanet ɗinmu daga tashar. Yana da kyawawan halaye kuma anyi shi cikin ƙaunataccen yare na Python. Ina so in fayyace cewa ba manufar wannan aikace-aikacen ta zama kayan aikin bayar da rahoton latency abin dogaro ba. Rashin jinkirin da wannan kayan aikin zai nuna mana bai kamata a ɗauka a matsayin ƙimar nuna ƙarancin salon ba ICMP. Valueimar dangi ce, ana amfani dashi don ƙayyade mafi ƙarancin uwar garken latency don saurin gwaji.

Cire Speedtest-cli

Kamar yadda za mu iya shigar da wannan masarrafar ta hanyoyi daban-daban guda biyu, a fili kuma za mu iya cire ta ta hanyoyi biyu daban-daban. Idan muka zaɓi shigar da shi daga wuraren ajiya na hukuma, dole ne mu buɗe tashar (Ctrl + Alt + T) kuma mu rubuta a ciki:

sudo apt remove speedtest-cli

Idan, a gefe guda, mun zaɓi girka ta amfani da pip, za mu iya kawar da mai amfani ta amfani da zaɓin cirewa. Dole ne mu buɗe tashar (Ctrl + Alt + T) kuma mu rubuta a cikinsu:

sudo pip uninstall speedtest-cli

Bar tsokaci

Your email address ba za a buga. Bukata filayen suna alama da *

*

*

  1. Wanda ke da alhakin bayanan: Miguel Ángel Gatón
  2. Manufar bayanan: Sarrafa SPAM, sarrafa sharhi.
  3. Halacci: Yarda da yarda
  4. Sadarwar bayanan: Ba za a sanar da wasu bayanan ga wasu kamfanoni ba sai ta hanyar wajibcin doka.
  5. Ajiye bayanai: Bayanin yanar gizo wanda Occentus Networks (EU) suka dauki nauyi
  6. Hakkoki: A kowane lokaci zaka iyakance, dawo da share bayanan ka.

      Computer Guardian m

    Kun kasance daidai a cikin duniya Damien: mafi saurin sauri shine babban kayan aiki don layin umarni

    Wani lokaci da suka wuce na sami matsala tare da mai ba da sabis na gida kuma na yanke shawarar ƙirƙirar rubutun python ta amfani da saurin sauri a matsayin tushen da ya aiko ni (ta hanyar imel) kowace rana da taƙaita mako-mako tare da saurin da aka samu da kuma waɗanda ke samar da jadawalai tare da waɗancan ƙimar.

    Idan kuna sha'awar zaku iya kalli nan (Zan yi farin ciki da jin ra'ayoyinku da shawarwarinku don ingantawa)

    Abinda kawai ya rage na gano shine mafi sauri shine shine da alama yana da kwaro tare da saurin ping: ƙimar da ya dawo koyaushe tana da yawa sama da abin da za'a samu tare da sigar yanar gizo mai saurin gudu. Shin irin wannan yana faruwa da ku?