speedtest-linux开源项目

我要开发同款
匿名用户2021年11月09日
23阅读
开发技术SHELL
所属分类终端/远程登录、应用工具
授权协议BSD-3-Clause License

作品详情

speedtest-linux

Fromthecommandlinegetping/download/uploadstats:

fromhttps://speedtest.netorhttps://fast.comwithouttheiradswithouttheirwebGUIorappinterfacesimplytimestampedinone-lineCSVformatsuitableforlogsusingBashshellscriptforallPOSIXsystems______________|speedtest:ping,downloadanduploadspeeds.Commandlineusingspeedtest.netresources.Thisstandalonescriptisawrapper.Usage:speedtest[--log|--simple|--verbose|--list|--fav|--version]Takesaboutaminuteforresultstoappear.Forlogfile,thevariable$logfcanbemodified.Examples:$speedtest--simplePing:22.602msDownload:0.62Mbit/sUpload:0.25Mbit/s$speedtest#Noargsforsinglelinetimestamped.2015-03-13,19:25,22.602,0.62,0.25$speedtest--log#Willcatlogfilewithlatestresult.Dependencies:curl(UsedtodownloadthefollowingPythonscript:)speedtest.py(https://github.com/sivel/speedtest-cli)fasttest

Getjustthedownloadspeedviafast.comfromthecommandline,suitableforlogs.TheinfrastructureisprovidedbyNetflixtomakesureISPsarenotthrottlingtheirstreamingmovies.

______________|fasttest:downloadspeedinMbps,flagtologresults.UsesNetflix'sfast.comresources,checkingviabothIPv4andIPv6.Thisstandalonescriptisawrapper.Usage:fasttest[--log|--verbose]Takesaboutaminuteforresultstoappear.Forlogfile,directoryvariable$logdirshouldbemodified.Examples:$fasttest#Noargsforsinglelinetimestamped.2017-03-06,19:25,None,0.62,None$fasttest--log#Willcatlogfilewithlatestresult.$fasttest--logtmp.log#elsedefault:fasttest.logDependencies:curl(UsedtodownloadthefollowingPythonscript:)fast_com.py(https://github.com/sanderjo/fast.com)Comparison

Forexecutiontime,speedtestrunsabout60%fasterthanfasttest.Intermsofinformation,speedtestprovidesmorethanfasttest,andismoreaccurateinmeasuringdownloadspeed.Thecodebaseforspeedtestismorematureandreceivesmoresupportandscrutiny,comparedtothatoffasttest.

Magicone-liner

Givenourpreferredchoice:speedtest--hereisawaytodirectlyaccessitsservicewithoutcloningourrepository:

$echo"$(curl-skLOhttps://git.io/speedtest.sh&&chmod+xspeedtest.sh&&./speedtest.sh)"2015-03-13,19:25,22.602,0.62,0.25

Thecurlcommandretrievesthemostcurrentversionofspeedtest,renamedforthisexerciseasspeedtest.sh,thenweexecuteittodisplay:date,localtime,pinginmilliseconds,followedbydownloadanduploadspeedsinMbps(Megabitspersecond).

Tofine-tunetheloggingfunctions,pleaseforkourrepository.

Acknowledgements

Manythankstothedevelopersupstream:@siveland@sanderjo--werelyontheirlatestupdatestothePythonsourcecode.

Shortcuttothisproject:https://git.io/speed

README.mdupdate:2017-03-09

查看全文
声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论